Class BeltTunnelBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
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:
BrassTunnelBlockEntity

public class BeltTunnelBlockEntity extends SmartBlockEntity
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.neoforged.neoforge.items.IItemHandler
     
    Map<net.minecraft.core.Direction,net.createmod.catnip.animation.LerpedFloat>
     
    protected List<com.mojang.datafixers.util.Pair<net.minecraft.core.Direction,Boolean>>
     
    Set<net.minecraft.core.Direction>
     

    Fields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity

    lazyTickCounter, lazyTickRate

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeltTunnelBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    flap(net.minecraft.core.Direction side, boolean inward)
     
    void
     
    void
    Block destroyed or Chunk unloaded.
    protected void
    read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
    Hook only these in future subclasses of STE
    static void
    registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
     
    void
     
    void
     
    void
    write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
    Hook only these in future subclasses of STE
    protected void
    writeFlapsAndSides(net.minecraft.nbt.CompoundTag compound)
     
    void
    writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
    This will always be called from the logical server

    Methods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity

    createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBox

    Methods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity

    blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendData

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, syncData, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdate
  • Field Details

    • flaps

      public Map<net.minecraft.core.Direction,net.createmod.catnip.animation.LerpedFloat> flaps
    • sides

      public Set<net.minecraft.core.Direction> sides
    • cap

      protected net.neoforged.neoforge.items.IItemHandler cap
    • flapsToSend

      protected List<com.mojang.datafixers.util.Pair<net.minecraft.core.Direction,Boolean>> flapsToSend
  • Constructor Details

    • BeltTunnelBlockEntity

      public BeltTunnelBlockEntity(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)
    • invalidate

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

      protected void writeFlapsAndSides(net.minecraft.nbt.CompoundTag compound)
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Description copied from interface: PartialSafeNBT
      This will always be called from the logical server
      Specified by:
      writeSafe in interface PartialSafeNBT
      Overrides:
      writeSafe in class SmartBlockEntity
    • write

      public 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
    • 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
    • updateTunnelConnections

      public void updateTunnelConnections()
    • flap

      public void flap(net.minecraft.core.Direction side, boolean inward)
    • initialize

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

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

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