Class ThermalilyBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
vazkii.botania.api.block_entity.BindableSpecialFlowerBlockEntity<ManaCollector>
vazkii.botania.api.block_entity.GeneratingFlowerBlockEntity
vazkii.botania.common.block.flower.generating.FluidGeneratorBlockEntity
vazkii.botania.common.block.flower.generating.ThermalilyBlockEntity
- All Implemented Interfaces:
Bound,FloatingFlowerProvider,WandBindable
-
Nested Class Summary
Nested classes/interfaces inherited from class vazkii.botania.api.block_entity.BindableSpecialFlowerBlockEntity
BindableSpecialFlowerBlockEntity.BindableFlowerWandHud<F extends BindableSpecialFlowerBlockEntity<?>>Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[]static final intstatic final intstatic final StringFields inherited from class vazkii.botania.common.block.flower.generating.FluidGeneratorBlockEntity
burnTime, cooldown, DECAY_TIME, TAG_COOLDOWNFields inherited from class vazkii.botania.api.block_entity.GeneratingFlowerBlockEntity
LINK_RANGEFields inherited from class vazkii.botania.api.block_entity.BindableSpecialFlowerBlockEntity
bindingPosFields inherited from class vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
MYCELIUM_DELAY, overgrowth, overgrowthBoost, PODZOL_DELAY, TAG_TICKS_EXISTED, ticksExistedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface vazkii.botania.api.block.Bound
UNBOUND_POS -
Constructor Summary
ConstructorsConstructorDescriptionThermalilyBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetColor()intintgetCooldownTime(boolean finishedPrevious) intvoidvoidreadFromPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Reads data from a network packet.static introllNewCooldownStrength(net.minecraft.util.RandomSource random) voidwriteToPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Writes some extra data to a network packet.Methods inherited from class vazkii.botania.common.block.flower.generating.FluidGeneratorBlockEntity
getGenerationDelay, getRadius, tickFlowerMethods inherited from class vazkii.botania.api.block_entity.GeneratingFlowerBlockEntity
addMana, emptyManaIntoCollector, findClosestTarget, getBindingRadius, getDefaultHudIcon, getManaMethods inherited from class vazkii.botania.api.block_entity.BindableSpecialFlowerBlockEntity
bindTo, canSelect, findBindCandidateAt, findBoundTile, getBinding, getBindingPos, getHudIcon, isValidBinding, setBindingPos, setPlacedBy, wouldBeValidBindingMethods inherited from class vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
commonTick, emitParticle, getEffectivePos, getFloatingData, getModulatedDelay, getRenderData, getSecondaryRadius, getUpdatePacket, getUpdateTag, isFloating, isOnSpecialSoil, isOvergrowthAffected, loadAdditional, saveAdditional, setFloating, syncMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
-
Field Details
-
COOLDOWN_TICKS_MULTIPLER
public static final int COOLDOWN_TICKS_MULTIPLER- See Also:
-
TAG_COOLDOWN_MAGNITUDE
- See Also:
-
COOLDOWN_ROLL_PDF
public static final int[] COOLDOWN_ROLL_PDF -
COOLDOWN_ROLL_TOTAL
public static final int COOLDOWN_ROLL_TOTAL
-
-
Constructor Details
-
ThermalilyBlockEntity
public ThermalilyBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getCooldownTime
public int getCooldownTime(boolean finishedPrevious) - Specified by:
getCooldownTimein classFluidGeneratorBlockEntity
-
rollNewCooldownStrength
public static int rollNewCooldownStrength(net.minecraft.util.RandomSource random) -
getColor
public int getColor()- Specified by:
getColorin classBindableSpecialFlowerBlockEntity<ManaCollector>
-
doBurnParticles
public void doBurnParticles()- Specified by:
doBurnParticlesin classFluidGeneratorBlockEntity
-
playSound
public void playSound()- Specified by:
playSoundin classFluidGeneratorBlockEntity
-
getComparatorSignal
public int getComparatorSignal()- Overrides:
getComparatorSignalin classSpecialFlowerBlockEntity
-
getMaxMana
public int getMaxMana()- Specified by:
getMaxManain classBindableSpecialFlowerBlockEntity<ManaCollector>
-
writeToPacketNBT
public void writeToPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Description copied from class:SpecialFlowerBlockEntityWrites some extra data to a network packet. This data is read by readFromPacketNBT on the client that receives the packet. Note: This method is also used to write to the world NBT.- Overrides:
writeToPacketNBTin classFluidGeneratorBlockEntity
-
readFromPacketNBT
public void readFromPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Description copied from class:SpecialFlowerBlockEntityReads data from a network packet. This data is written by writeToPacketNBT in the server. Note: This method is also used to read from the world NBT.- Overrides:
readFromPacketNBTin classFluidGeneratorBlockEntity
-