Package com.petrolpark.shop.customer
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.capabilities.Capability<EntityCustomer>final net.minecraft.world.entity.EntityFields inherited from class com.petrolpark.shop.customer.AbstractCustomer
elapsedOrderTime, openOffer, orderTime, shopFields inherited from interface com.petrolpark.shop.customer.ICustomer
INFINITE_ORDER_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @NotNull net.minecraftforge.common.util.LazyOptional<T>getCapability(@NotNull net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable net.minecraft.core.Direction side) net.minecraft.network.chat.ComponentgetName()voidsupplyLootParams(net.minecraft.world.level.storage.loot.LootParams.Builder builder) Methods inherited from class com.petrolpark.shop.customer.AbstractCustomer
clearOpenOffer, deserializeNBT, getElapsedOrderTime, getOpenOffer, getOrderTime, getShop, serializeNBT, tickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Field Details
-
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() -
supplyLootParams
public void supplyLootParams(net.minecraft.world.level.storage.loot.LootParams.Builder builder) - Specified by:
supplyLootParamsin interfaceICustomer
-
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:
getCapabilityin interfacenet.minecraftforge.common.capabilities.ICapabilityProvider
-