Class EntityCustomer

java.lang.Object
com.petrolpark.shop.customer.AbstractCustomer
com.petrolpark.shop.customer.EntityCustomer
All Implemented Interfaces:
ICustomer, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class EntityCustomer extends AbstractCustomer implements net.minecraftforge.common.capabilities.ICapabilityProvider
  • Field Details

    • CAPABILITY

      public static final net.minecraftforge.common.capabilities.Capability<EntityCustomer> CAPABILITY
    • entity

      public final net.minecraft.world.entity.Entity entity
  • Constructor Details

    • EntityCustomer

      public EntityCustomer(net.minecraft.world.entity.Entity entity)
  • Method Details

    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface ICustomer
    • supplyLootParams

      public void supplyLootParams(net.minecraft.world.level.storage.loot.LootParams.Builder builder)
      Specified by:
      supplyLootParams in interface ICustomer
    • getCapability

      @NotNull public <T> @NotNull net.minecraftforge.common.util.LazyOptional<T> getCapability(@NotNull @NotNull net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable @Nullable net.minecraft.core.Direction side)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider