Class BrassTunnelBlockEntity

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

public class BrassTunnelBlockEntity extends BeltTunnelBlockEntity implements IHaveGoggleInformation
  • Field Details

  • Constructor Details

    • BrassTunnelBlockEntity

      public BrassTunnelBlockEntity(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)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class BeltTunnelBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class BeltTunnelBlockEntity
    • setStackToDistribute

      public void setStackToDistribute(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.core.Direction enteredFrom)
    • getStackToDistribute

      public net.minecraft.world.item.ItemStack getStackToDistribute()
    • grabAllStacksOfGroup

      public List<net.minecraft.world.item.ItemStack> grabAllStacksOfGroup(boolean simulate)
    • insertIntoTunnel

      @Nullable protected @Nullable net.minecraft.world.item.ItemStack insertIntoTunnel(BrassTunnelBlockEntity tunnel, net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack, boolean simulate)
    • testFlapFilter

      public boolean testFlapFilter(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack)
    • flapFilterEmpty

      public boolean flapFilterEmpty(net.minecraft.core.Direction side)
    • initialize

      public void initialize()
      Overrides:
      initialize in class BeltTunnelBlockEntity
    • canInsert

      public boolean canInsert(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack)
    • hasDistributionBehaviour

      public boolean hasDistributionBehaviour()
    • addBehavioursDeferred

      public void addBehavioursDeferred(List<BlockEntityBehaviour> behaviours)
      Description copied from class: SmartBlockEntity
      Gets called just before reading block entity data for behaviours. Register anything here that depends on your custom BE data.
      Overrides:
      addBehavioursDeferred in class SmartBlockEntity
    • createSidedFilter

      protected SidedFilteringBehaviour createSidedFilter()
    • 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 BeltTunnelBlockEntity
    • 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 BeltTunnelBlockEntity
    • isConnected

      public boolean isConnected(boolean leftSide)
    • updateTunnelConnections

      public void updateTunnelConnections()
      Overrides:
      updateTunnelConnections in class BeltTunnelBlockEntity
    • determineIfConnected

      protected boolean determineIfConnected(boolean leftSide)
    • getAdjacent

      @Nullable protected @Nullable BrassTunnelBlockEntity getAdjacent(boolean leftSide)
    • invalidate

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

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

      public net.neoforged.neoforge.items.IItemHandler getBeltCapability()
    • canTakeItems

      public boolean canTakeItems()
    • addToGoggleTooltip

      public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Description copied from interface: IHaveGoggleInformation
      This method will be called when looking at a BlockEntity that implements this interface
      Specified by:
      addToGoggleTooltip in interface IHaveGoggleInformation
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed