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

public class ArmBlockEntity extends KineticBlockEntity implements TransformableBlockEntity
  • Field Details

  • Constructor Details

    • ArmBlockEntity

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

    • addBehaviours

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

      public void tick()
      Overrides:
      tick in class KineticBlockEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartBlockEntity
    • createRenderBoundingBox

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

      protected boolean isOnCeiling()
    • destroy

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

      protected void searchForItem()
    • searchForDestination

      protected void searchForDestination()
    • getDistributableAmount

      protected int getDistributableAmount(ArmInteractionPoint armInteractionPoint, int i)
    • depositItem

      protected void depositItem()
    • collectItem

      protected void collectItem()
    • redstoneUpdate

      public void redstoneUpdate()
    • transform

      public void transform(net.minecraft.world.level.block.entity.BlockEntity be, StructureTransform transform)
      Specified by:
      transform in interface TransformableBlockEntity
    • isAreaActuallyLoaded

      protected boolean isAreaActuallyLoaded(net.minecraft.core.BlockPos center, int range)
    • initInteractionPoints

      protected void initInteractionPoints()
    • writeInteractionPoints

      public void writeInteractionPoints(net.minecraft.nbt.CompoundTag compound)
    • 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 KineticBlockEntity
    • 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
    • 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 KineticBlockEntity
    • getRange

      public static int getRange()
    • addToTooltip

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

      public void setLevel(net.minecraft.world.level.Level level)
      Overrides:
      setLevel in class net.minecraft.world.level.block.entity.BlockEntity