Class BlockBreakingKineticBlockEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension
Direct Known Subclasses:
DrillBlockEntity, SawBlockEntity

public abstract class BlockBreakingKineticBlockEntity extends KineticBlockEntity
  • Field Details

    • NEXT_BREAKER_ID

      public static final AtomicInteger NEXT_BREAKER_ID
    • ticksUntilNextProgress

      protected int ticksUntilNextProgress
    • destroyProgress

      protected int destroyProgress
    • breakerId

      protected int breakerId
    • breakingPos

      protected net.minecraft.core.BlockPos breakingPos
  • Constructor Details

    • BlockBreakingKineticBlockEntity

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

    • onSpeedChanged

      public void onSpeedChanged(float prevSpeed)
      Overrides:
      onSpeedChanged in class KineticBlockEntity
    • lazyTick

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

      public void destroyNextTick()
    • getBreakingPos

      protected abstract net.minecraft.core.BlockPos getBreakingPos()
    • shouldRun

      protected boolean shouldRun()
    • 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
    • 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 KineticBlockEntity
    • invalidate

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

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

      public boolean canBreak(net.minecraft.world.level.block.state.BlockState stateToBreak, float blockHardness)
    • isBreakable

      public static boolean isBreakable(net.minecraft.world.level.block.state.BlockState stateToBreak, float blockHardness)
    • onBlockBroken

      public void onBlockBroken(net.minecraft.world.level.block.state.BlockState stateToBreak)
    • getBreakSpeed

      protected float getBreakSpeed()