Class PackagerLinkBlockEntity

All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class PackagerLinkBlockEntity extends LinkWithBulbBlockEntity
  • Field Details

  • Constructor Details

    • PackagerLinkBlockEntity

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

    • fetchSummaryFromPackager

      public InventorySummary fetchSummaryFromPackager(@Nullable net.neoforged.neoforge.items.IItemHandler ignoredHandler)
    • playEffect

      public void playEffect()
    • processRequest

      public net.createmod.catnip.data.Pair<PackagerBlockEntity,PackagingRequest> processRequest(net.minecraft.world.item.ItemStack stack, int amount, String address, int linkIndex, org.apache.commons.lang3.mutable.MutableBoolean finalLink, int orderId, @Nullable PackageOrder orderContext, @Nullable net.neoforged.neoforge.items.IItemHandler ignoredHandler)
    • 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 LinkWithBulbBlockEntity
    • 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 LinkWithBulbBlockEntity
    • addBehaviours

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

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

      @Nullable public PackagerBlockEntity getPackager()
    • getBulbFacing

      public net.minecraft.core.Direction getBulbFacing(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getBulbFacing in class LinkWithBulbBlockEntity
    • getBulbOffset

      public net.minecraft.world.phys.Vec3 getBulbOffset(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getBulbOffset in class LinkWithBulbBlockEntity