Class AnimatedTorchBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.AnimatedTorchBlockEntity
- All Implemented Interfaces:
Wandable,ManaTrigger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleintbooleandoubleintbooleandoubleintstatic final net.minecraft.core.Direction[]Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface vazkii.botania.api.mana.ManaTrigger
ID -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedTorchBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcommonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, AnimatedTorchBlockEntity self) voidvoidonBurstCollision(ManaBurst burst) voidonPlace(@Nullable net.minecraft.world.entity.LivingEntity entity) booleanonUsedByWand(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side) Called when the block is used by a wand.voidreadPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) voidvoidtoggle()booleantriggerEvent(int id, int param) voidwritePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity
getUpdatePacket, getUpdateTag, loadAdditional, saveAdditionalMethods 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
-
Field Details
-
SIDES
public static final net.minecraft.core.Direction[] SIDES -
side
public int side -
rotation
public double rotation -
rotating
public boolean rotating -
directionInitialized
public boolean directionInitialized -
lastTickRotation
public double lastTickRotation -
nextRandomRotation
public int nextRandomRotation -
currentRandomRotation
public int currentRandomRotation -
anglePerTick
public double anglePerTick
-
-
Constructor Details
-
AnimatedTorchBlockEntity
public AnimatedTorchBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
handRotate
public void handRotate() -
onPlace
public void onPlace(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity) -
setRemoved
public void setRemoved()- Overrides:
setRemovedin classnet.minecraft.world.level.block.entity.BlockEntity
-
toggle
public void toggle() -
onUsedByWand
public boolean onUsedByWand(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, 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
-
triggerEvent
public boolean triggerEvent(int id, int param) - Overrides:
triggerEventin classnet.minecraft.world.level.block.entity.BlockEntity
-
onBurstCollision
- Specified by:
onBurstCollisionin interfaceManaTrigger
-
commonTick
public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, AnimatedTorchBlockEntity self) -
writePacketNBT
public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
writePacketNBTin classBotaniaBlockEntity
-
readPacketNBT
public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
readPacketNBTin classBotaniaBlockEntity
-