java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
All Implemented Interfaces:
PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.client.extensions.IMenuProviderExtension, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class PostboxBlockEntity extends PackagePortBlockEntity
  • Field Details

    • trackedGlobalStation

      public WeakReference<GlobalStation> trackedGlobalStation
    • flag

      public net.createmod.catnip.animation.LerpedFloat flag
    • forceFlag

      public boolean forceFlag
  • Constructor Details

    • PostboxBlockEntity

      public PostboxBlockEntity(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)
    • tick

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

      protected void onOpenChange(boolean open)
      Specified by:
      onOpenChange in class PackagePortBlockEntity
    • spawnParticles

      public void spawnParticles()
    • 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 PackagePortBlockEntity
    • 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 PackagePortBlockEntity
    • onChunkUnloaded

      public void onChunkUnloaded()
      Specified by:
      onChunkUnloaded in interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
      Overrides:
      onChunkUnloaded in class SmartBlockEntity