Class EntityCustomer
java.lang.Object
com.petrolpark.core.shop.customer.AbstractCustomer
com.petrolpark.core.shop.customer.EntityCustomer
- All Implemented Interfaces:
ICustomer,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag, EntityCustomer> final net.minecraft.world.entity.EntityFields inherited from class com.petrolpark.core.shop.customer.AbstractCustomer
elapsedOrderTime, openOffer, orderTime, shopFields inherited from interface com.petrolpark.core.shop.customer.ICustomer
INFINITE_ORDER_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final EntityCustomercreate(net.neoforged.neoforge.attachment.IAttachmentHolder attachmentHolder) net.minecraft.network.chat.ComponentgetName()voidsupplyLootParams(net.minecraft.world.level.storage.loot.LootParams.Builder builder) Methods inherited from class com.petrolpark.core.shop.customer.AbstractCustomer
clearOpenOffer, deserializeNBT, getElapsedOrderTime, getOpenOffer, getOrderTime, getShop, serializeNBT, tick
-
Field Details
-
entity
public final net.minecraft.world.entity.Entity entity -
ATTACHMENT_SERIALIZER
public static final net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,EntityCustomer> ATTACHMENT_SERIALIZER
-
-
Constructor Details
-
EntityCustomer
public EntityCustomer(net.minecraft.world.entity.Entity entity)
-
-
Method Details
-
create
public static final EntityCustomer create(net.neoforged.neoforge.attachment.IAttachmentHolder attachmentHolder) -
getName
public net.minecraft.network.chat.Component getName() -
supplyLootParams
public void supplyLootParams(net.minecraft.world.level.storage.loot.LootParams.Builder builder)
-