Class BergamuteBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
vazkii.botania.common.block.flower.functional.BergamuteBlockEntity
- All Implemented Interfaces:
FloatingFlowerProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
Fields 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, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionBergamuteBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Pair<Integer, BergamuteBlockEntity> getBergamutesNearby(net.minecraft.world.level.Level level, double x, double y, double z, int maxCount) Returns a descriptor for the radius of this sub tile.static booleanisBergamuteNearby(net.minecraft.world.level.Level level, double x, double y, double z) static booleanisBergamuteOccludingVibration(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 sourcePos, net.minecraft.world.phys.Vec3 destPos) static voidparticle(BergamuteBlockEntity berg) voidvoidMethods inherited from class vazkii.botania.api.block_entity.SpecialFlowerBlockEntity
commonTick, emitParticle, getComparatorSignal, getEffectivePos, getFloatingData, getModulatedDelay, getRenderData, getSecondaryRadius, getUpdatePacket, getUpdateTag, isFloating, isOnSpecialSoil, isOvergrowthAffected, loadAdditional, readFromPacketNBT, saveAdditional, setFloating, setPlacedBy, sync, writeToPacketNBTMethods 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, triggerEvent
-
Constructor Details
-
BergamuteBlockEntity
public BergamuteBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tickFlower
public void tickFlower()- Overrides:
tickFlowerin classSpecialFlowerBlockEntity
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classnet.minecraft.world.level.block.entity.BlockEntity
-
getBergamutesNearby
public static com.mojang.datafixers.util.Pair<Integer,BergamuteBlockEntity> getBergamutesNearby(net.minecraft.world.level.Level level, double x, double y, double z, int maxCount) -
isBergamuteNearby
public static boolean isBergamuteNearby(net.minecraft.world.level.Level level, double x, double y, double z) -
isBergamuteOccludingVibration
public static boolean isBergamuteOccludingVibration(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 sourcePos, net.minecraft.world.phys.Vec3 destPos) -
particle
-
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
-