public abstract class BlockBreakingKineticTileEntity extends KineticTileEntity
IHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
protected int |
breakerId |
protected net.minecraft.util.math.BlockPos |
breakingPos |
protected int |
destroyProgress |
static java.util.concurrent.atomic.AtomicInteger |
NEXT_BREAKER_ID |
protected int |
ticksUntilNextProgress |
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
BlockBreakingKineticTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBreak(net.minecraft.block.BlockState stateToBreak,
float blockHardness) |
void |
destroyNextTick() |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
protected abstract net.minecraft.util.math.BlockPos |
getBreakingPos() |
protected float |
getBreakSpeed() |
static boolean |
isBreakable(net.minecraft.block.BlockState stateToBreak,
float blockHardness) |
void |
lazyTick() |
void |
onBlockBroken(net.minecraft.block.BlockState stateToBreak) |
void |
onSpeedChanged(float prevSpeed) |
void |
setRemoved() |
protected boolean |
shouldRun() |
void |
tick() |
void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
addBehaviours, addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRenderBoundingBox, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, makeRenderBoundingBox, needsSpeedUpdate, propagateRotationTo, removeSource, requestModelDataUpdate, setNetwork, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementaddBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, load, markVirtual, readClientUpdate, removeBehaviour, save, sendToContainer, setLazyTickRate, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainedFluidTooltip, formatgetWorld, shouldRenderNormallypublic static final java.util.concurrent.atomic.AtomicInteger NEXT_BREAKER_ID
protected int ticksUntilNextProgress
protected int destroyProgress
protected int breakerId
protected net.minecraft.util.math.BlockPos breakingPos
public BlockBreakingKineticTileEntity(net.minecraft.tileentity.TileEntityType<?> typeIn)
public void onSpeedChanged(float prevSpeed)
onSpeedChanged in class KineticTileEntitypublic void lazyTick()
lazyTick in class SmartTileEntitypublic void destroyNextTick()
protected abstract net.minecraft.util.math.BlockPos getBreakingPos()
protected boolean shouldRun()
public void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class KineticTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class KineticTileEntitypublic void setRemoved()
setRemoved in class KineticTileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class KineticTileEntitypublic boolean canBreak(net.minecraft.block.BlockState stateToBreak,
float blockHardness)
public static boolean isBreakable(net.minecraft.block.BlockState stateToBreak,
float blockHardness)
public void onBlockBroken(net.minecraft.block.BlockState stateToBreak)
protected float getBreakSpeed()