Class PortableStorageInterfaceBlockEntity

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
Direct Known Subclasses:
PortableFluidInterfaceBlockEntity, PortableItemInterfaceBlockEntity

public abstract class PortableStorageInterfaceBlockEntity extends SmartBlockEntity
  • Field Details

    • ANIMATION

      public static final int ANIMATION
      See Also:
    • transferTimer

      protected int transferTimer
    • distance

      protected float distance
    • connectionAnimation

      protected net.createmod.catnip.animation.LerpedFloat connectionAnimation
    • powered

      protected boolean powered
    • connectedEntity

      protected net.minecraft.world.entity.Entity connectedEntity
    • keepAlive

      public int keepAlive
  • Constructor Details

    • PortableStorageInterfaceBlockEntity

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

    • startTransferringTo

      public void startTransferringTo(Contraption contraption, float distance)
    • stopTransferring

      protected void stopTransferring()
    • canTransfer

      public boolean canTransfer()
    • initialize

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

      protected abstract void invalidateCapability()
    • tick

      public void tick()
      Overrides:
      tick 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
    • 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
    • neighbourChanged

      public void neighbourChanged()
    • isPowered

      public boolean isPowered()
    • createRenderBoundingBox

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

      public boolean isTransferring()
    • startConnecting

      public void startConnecting()
    • onContentTransferred

      public void onContentTransferred()
    • getTransferTimeout

      protected Integer getTransferTimeout()
    • addBehaviours

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