Class BlockBreakingKineticTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
com.jozufozu.flywheel.api.FlywheelRendered, IHaveGoggleInformation, IHaveHoveringInformation, IInteractionChecker, IPartialSafeNBT, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
DrillTileEntity, SawTileEntity

public abstract class BlockBreakingKineticTileEntity extends KineticTileEntity
  • 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

    • BlockBreakingKineticTileEntity

      public BlockBreakingKineticTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, 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 KineticTileEntity
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartTileEntity
    • 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, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticTileEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticTileEntity
    • setRemoved

      public void setRemoved()
      Overrides:
      setRemoved in class KineticTileEntity
    • tick

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