Class TableClothBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class TableClothBlockEntity extends SmartBlockEntity
  • Field Details

    • computerBehaviour

      public AbstractComputerBehaviour computerBehaviour
    • requestData

      public AutoRequestData requestData
    • manuallyAddedItems

      public List<net.minecraft.world.item.ItemStack> manuallyAddedItems
    • owner

      public UUID owner
    • facing

      public net.minecraft.core.Direction facing
    • sideOccluded

      public boolean sideOccluded
    • priceTag

      public FilteringBehaviour priceTag
  • Constructor Details

    • TableClothBlockEntity

      public TableClothBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • registerCapabilities

      public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartBlockEntity
    • getItemsForRender

      public List<net.minecraft.world.item.ItemStack> getItemsForRender()
    • invalidateItemsForRender

      public void invalidateItemsForRender()
    • notifyShopUpdate

      public void notifyShopUpdate()
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • createRenderBoundingBox

      protected net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class CachedRenderBBBlockEntity
    • isShop

      public boolean isShop()
    • use

      public net.minecraft.world.ItemInteractionResult use(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult ray)
    • targetsPriceTag

      public boolean targetsPriceTag(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult ray)
    • useShop

      public net.minecraft.world.ItemInteractionResult useShop(net.minecraft.world.entity.player.Player player)
    • getStockLevelForTrade

      public int getStockLevelForTrade(@Nullable ShoppingListItem.ShoppingList otherPurchases)
    • write

      protected void write(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartBlockEntity
    • destroy

      public void destroy()
      Description copied from class: SmartBlockEntity
      Block destroyed or replaced. Requires Block to call IBE::onRemove
      Overrides:
      destroy in class SmartBlockEntity
    • getPaymentItem

      public net.minecraft.world.item.ItemStack getPaymentItem()
    • getPaymentAmount

      public int getPaymentAmount()
    • invalidate

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate in class SmartBlockEntity