Class BlockBreakingKineticTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.CachedRenderBBTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.components.actors.BlockBreakingKineticTileEntity
- All Implemented Interfaces:
IHaveGoggleInformation,IHaveHoveringInformation,ISpecialBlockEntityItemRequirement,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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected net.minecraft.core.BlockPosprotected intstatic final AtomicIntegerprotected intFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
lazyTickCounter, lazyTickRateFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABBFields inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
componentSpacing, spacing -
Constructor Summary
ConstructorsConstructorDescriptionBlockBreakingKineticTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> typeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBreak(net.minecraft.world.level.block.state.BlockState stateToBreak, float blockHardness) voidprotected abstract net.minecraft.core.BlockPosprotected floatstatic booleanisBreakable(net.minecraft.world.level.block.state.BlockState stateToBreak, float blockHardness) voidlazyTick()voidonBlockBroken(net.minecraft.world.level.block.state.BlockState stateToBreak) voidonSpeedChanged(float prevSpeed) protected voidread(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidprotected booleanvoidtick()voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addBehaviours, addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRotationAngleOffset, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, propagateRotationTo, removeSource, requestModelDataUpdate, setNetwork, setRemovedNotDueToChunkUnload, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, isFluidHandlerCap, isItemHandlerCap, isVirtual, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.tileEntity.CachedRenderBBTileEntity
createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltip
-
Field Details
-
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:
onSpeedChangedin classKineticTileEntity
-
lazyTick
public void lazyTick()- Overrides:
lazyTickin classSmartTileEntity
-
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:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classKineticTileEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
readin classKineticTileEntity
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classKineticTileEntity
-
tick
public void tick()- Overrides:
tickin classKineticTileEntity
-
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()
-