Class BlazeBurnerBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
com.simibubi.create.foundation.blockEntity.SmartBlockEntity
com.simibubi.create.content.processing.burner.BlazeBurnerBlockEntity
- All Implemented Interfaces:
PartialSafeNBT,SpecialBlockEntityItemRequirement,IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlazeBurnerBlockEntity.FuelTypebooleanbooleanprotected net.createmod.catnip.animation.LerpedFloatnet.createmod.catnip.animation.LerpedFloatstatic final intbooleanstatic final intprotected intbooleanFields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
lazyTickCounter, lazyTickRateFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionBlazeBurnerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehaviours(List<BlockEntityBehaviour> behaviours) protected voidprotected BlazeBurnerBlock.HeatLevelintstatic StockTickerBlockEntitygetStockTicker(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) booleanbooleanisCreativeFuel(net.minecraft.world.item.ItemStack stack) booleanvoidlazyTick()protected voidprotected voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEprotected voidvoidspawnParticleBurst(boolean soulFlame) protected voidspawnParticles(BlazeBurnerBlock.HeatLevel heatLevel, double burstMult) voidtick()protected booleantryUpdateFuel(net.minecraft.world.item.ItemStack itemStack, boolean forceOverflow, boolean simulate) voidvoidwrite(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, destroy, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, invalidate, isChunkUnloaded, isVirtual, loadAdditional, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdate
-
Field Details
-
MAX_HEAT_CAPACITY
public static final int MAX_HEAT_CAPACITY- See Also:
-
INSERTION_THRESHOLD
public static final int INSERTION_THRESHOLD- See Also:
-
headAnimation
public net.createmod.catnip.animation.LerpedFloat headAnimation -
stockKeeper
public boolean stockKeeper -
isCreative
public boolean isCreative -
goggles
public boolean goggles -
hat
public boolean hat -
activeFuel
-
remainingBurnTime
protected int remainingBurnTime -
headAngle
protected net.createmod.catnip.animation.LerpedFloat headAngle
-
-
Constructor Details
-
BlazeBurnerBlockEntity
public BlazeBurnerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getActiveFuel
-
getRemainingBurnTime
public int getRemainingBurnTime() -
isCreative
public boolean isCreative() -
tick
public void tick()- Overrides:
tickin classSmartBlockEntity
-
lazyTick
public void lazyTick()- Overrides:
lazyTickin classSmartBlockEntity
-
getStockTicker
@Nullable public static StockTickerBlockEntity getStockTicker(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) -
addBehaviours
- Specified by:
addBehavioursin classSmartBlockEntity
-
write
public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
writein classSmartBlockEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
readin classSmartBlockEntity
-
getHeatLevelFromBlock
-
getHeatLevelForRender
-
updateBlockState
public void updateBlockState() -
setBlockHeat
-
tryUpdateFuel
protected boolean tryUpdateFuel(net.minecraft.world.item.ItemStack itemStack, boolean forceOverflow, boolean simulate) - Returns:
- true if the heater updated its burn time and an item should be consumed
-
applyCreativeFuel
protected void applyCreativeFuel() -
isCreativeFuel
public boolean isCreativeFuel(net.minecraft.world.item.ItemStack stack) -
isValidBlockAbove
public boolean isValidBlockAbove() -
playSound
protected void playSound() -
getHeatLevel
-
spawnParticles
-
spawnParticleBurst
public void spawnParticleBurst(boolean soulFlame)
-