Class MobCustomer
java.lang.Object
petrolpark.mc.library.core.world.restaurant.customer.AbstractCustomer
petrolpark.mc.library.core.world.restaurant.customer.MobCustomer
- All Implemented Interfaces:
ICustomer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
ICustomer.ProviderType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag, ICustomer> static final net.neoforged.neoforge.attachment.AttachmentSyncHandler<ICustomer> final net.minecraft.world.entity.LivingEntityFields inherited from class petrolpark.mc.library.core.world.restaurant.customer.AbstractCustomer
order, orderTime, restaurant, teamProvider -
Constructor Summary
ConstructorsConstructorDescriptionMobCustomer(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<Restaurant> restaurant, ITeam.Provider teamProvider, IRestaurantOrder order, long orderTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelOrder(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player) static final AbstractCustomer.Factory<MobCustomer> factory(net.neoforged.neoforge.attachment.IAttachmentHolder attachmentHolder) net.minecraft.network.chat.ComponentgetName()net.minecraft.core.BlockPosvoidsupplyLootParams(net.minecraft.server.level.ServerLevel level, net.minecraft.world.level.storage.loot.LootParams.Builder builder) voidtickWhileOrderItemHeld(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, int slotId) Methods inherited from class petrolpark.mc.library.core.world.restaurant.customer.AbstractCustomer
deserializeNBT, getOrder, getOrderTime, getRestaurant, getTeamProvider, isNone, readBuffer, serializeNBT, writeBufferMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
getDescription
-
Field Details
-
entity
public final net.minecraft.world.entity.LivingEntity entity -
ATTACHMENT_SERIALIZER
public static final net.neoforged.neoforge.attachment.IAttachmentSerializer<net.minecraft.nbt.CompoundTag,ICustomer> ATTACHMENT_SERIALIZER -
ATTCHMENT_SYNC_HANDLER
public static final net.neoforged.neoforge.attachment.AttachmentSyncHandler<ICustomer> ATTCHMENT_SYNC_HANDLER
-
-
Constructor Details
-
MobCustomer
public MobCustomer(net.minecraft.world.entity.LivingEntity entity, net.minecraft.core.Holder<Restaurant> restaurant, ITeam.Provider teamProvider, IRestaurantOrder order, long orderTime)
-
-
Method Details
-
factory
public static final AbstractCustomer.Factory<MobCustomer> factory(net.neoforged.neoforge.attachment.IAttachmentHolder attachmentHolder) -
getName
public net.minecraft.network.chat.Component getName() -
getPosition
public net.minecraft.core.BlockPos getPosition() -
cancelOrder
public void cancelOrder(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player) -
supplyLootParams
public void supplyLootParams(net.minecraft.server.level.ServerLevel level, net.minecraft.world.level.storage.loot.LootParams.Builder builder) -
tickWhileOrderItemHeld
public void tickWhileOrderItemHeld(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, int slotId) -
getProvider
-