Class PackagerBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.minecraft.world.Clearable, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Direct Known Subclasses:
RepackagerBlockEntity

public class PackagerBlockEntity extends SmartBlockEntity implements net.minecraft.world.Clearable
  • Field Details

    • redstonePowered

      public boolean redstonePowered
    • buttonCooldown

      public int buttonCooldown
    • signBasedAddress

      public String signBasedAddress
    • targetInventory

      public InvManipulationBehaviour targetInventory
    • heldBox

      public net.minecraft.world.item.ItemStack heldBox
    • previouslyUnwrapped

      public net.minecraft.world.item.ItemStack previouslyUnwrapped
    • queuedExitingPackages

      public List<BigItemStack> queuedExitingPackages
    • inventory

      public final PackagerItemHandler inventory
    • CYCLE

      public static final int CYCLE
      See Also:
    • animationTicks

      public int animationTicks
    • animationInward

      public boolean animationInward
    • computerBehaviour

      public AbstractComputerBehaviour computerBehaviour
    • hasCustomComputerAddress

      public Boolean hasCustomComputerAddress
    • customComputerAddress

      public String customComputerAddress
  • Constructor Details

    • PackagerBlockEntity

      public PackagerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, 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
    • initialize

      public void initialize()
      Overrides:
      initialize in class SmartBlockEntity
    • invalidate

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

      public void tick()
      Overrides:
      tick in class SmartBlockEntity
    • triggerStockCheck

      public void triggerStockCheck()
    • getAvailableItems

      public InventorySummary getAvailableItems()
    • lazyTick

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

      public void recheckIfLinksPresent()
    • redstoneModeActive

      public boolean redstoneModeActive()
    • flashLink

      public void flashLink()
    • isTooBusyFor

      public boolean isTooBusyFor(LogisticallyLinkedBehaviour.RequestType type)
    • activate

      public void activate()
    • unwrapBox

      public boolean unwrapBox(net.minecraft.world.item.ItemStack box, boolean simulate)
    • attemptToSend

      public void attemptToSend(List<PackagingRequest> queuedRequests)
    • updateSignAddress

      public void updateSignAddress()
    • getSign

      protected String getSign(net.minecraft.core.Direction side)
    • wakeTheFrogs

      protected void wakeTheFrogs()
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, 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
    • write

      protected void write(net.minecraft.nbt.CompoundTag compound, 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
    • clearContent

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • destroy

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

      public float getTrayOffset(float partialTicks)
    • getRenderedBox

      public net.minecraft.world.item.ItemStack getRenderedBox()
    • isTargetingSameInventory

      public boolean isTargetingSameInventory(@Nullable @Nullable IdentifiedInventory inventory)