Class RannuncarpusBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
vazkii.botania.api.block_entity.BindableSpecialFlowerBlockEntity<ManaPool>
vazkii.botania.api.block_entity.FunctionalFlowerBlockEntity
vazkii.botania.common.block.flower.functional.RannuncarpusBlockEntity
- All Implemented Interfaces:
Bound,FloatingFlowerProvider,Wandable,WandBindable
- Direct Known Subclasses:
RannuncarpusBlockEntity.Mini
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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
FieldsFields inherited from class vazkii.botania.api.block_entity.FunctionalFlowerBlockEntity
LINK_RANGE, redstoneSignalFields 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
ConstructorsModifierConstructorDescriptionRannuncarpusBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protectedRannuncarpusBlockEntity(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 TypeMethodDescriptionbooleanIf set to true, redstoneSignal will be updated every tick.intgetColor()intintReturns a descriptor for the radius of this sub tile.Returns a descriptor for this flower's secondary radius.net.minecraft.world.level.block.state.BlockStateintbooleanonUsedByWand(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.Direction side) Called when the block is used by a wand.voidreadFromPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Reads data from a network packet.voidvoidwriteToPacketNBT(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.api.block_entity.FunctionalFlowerBlockEntity
addMana, drawManaFromPool, 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, getComparatorSignal, getEffectivePos, getFloatingData, getModulatedDelay, getRenderData, 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
-
PLACE_INTERVAL_TICKS
public static final int PLACE_INTERVAL_TICKS- See Also:
-
-
Constructor Details
-
RannuncarpusBlockEntity
protected RannuncarpusBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
RannuncarpusBlockEntity
public RannuncarpusBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tickFlower
public void tickFlower()- Overrides:
tickFlowerin classFunctionalFlowerBlockEntity
-
getUnderlyingBlock
public net.minecraft.world.level.block.state.BlockState getUnderlyingBlock() -
acceptsRedstone
public boolean acceptsRedstone()Description copied from class:FunctionalFlowerBlockEntityIf set to true, redstoneSignal will be updated every tick.- Overrides:
acceptsRedstonein classFunctionalFlowerBlockEntity
-
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 classFunctionalFlowerBlockEntity
-
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 classFunctionalFlowerBlockEntity
-
onUsedByWand
public boolean onUsedByWand(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.Direction side) Description copied from interface:WandableCalled when the block is used by a wand.- Specified by:
onUsedByWandin interfaceWandable- Parameters:
player- Null if the block is being wanded by a dispenser
-
getRadius
Description copied from class:SpecialFlowerBlockEntityReturns a descriptor for the radius of this sub tile. This is called while a player is looking at the block with a Manaseer Monocle.- Specified by:
getRadiusin classSpecialFlowerBlockEntity
-
getSecondaryRadius
Description copied from class:SpecialFlowerBlockEntityReturns a descriptor for this flower's secondary radius. Use for e.g. when a flower has different ranges for picking up and using dropped items. Called when the player is looking at the block with a Manaseer Monocle.- Overrides:
getSecondaryRadiusin classSpecialFlowerBlockEntity
-
getPlaceRange
public int getPlaceRange() -
getVerticalPlaceRange
public int getVerticalPlaceRange() -
getMaxMana
public int getMaxMana()- Specified by:
getMaxManain classBindableSpecialFlowerBlockEntity<ManaPool>
-
getColor
public int getColor()- Specified by:
getColorin classBindableSpecialFlowerBlockEntity<ManaPool>
-