Class LuminizerBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.LuminizerBlockEntity
- All Implemented Interfaces:
Bound,WandBindable
-
Nested Class Summary
Nested ClassesNested 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 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface vazkii.botania.api.block.Bound
UNBOUND_POS -
Constructor Summary
ConstructorsConstructorDescriptionLuminizerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbindTo(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Call to bind the TileEntity to where the player clicked.booleancanSelect(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Return true if the Wand can select this tile.static voidclientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, LuminizerBlockEntity self) net.minecraft.core.BlockPosGets where this block is bound tonet.minecraft.world.phys.Vec3net.minecraft.core.BlockPosbooleanvoidmountEntity(net.minecraft.world.entity.Entity e) voidreadPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) static voidserverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, LuminizerBlockEntity self) voidvoidwritePacketNBT(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, setRemoved, triggerEvent
-
Field Details
-
MAX_DIST
public static final int MAX_DIST- See Also:
-
-
Constructor Details
-
LuminizerBlockEntity
public LuminizerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
mountEntity
public void mountEntity(net.minecraft.world.entity.Entity e) -
clientTick
public static void clientTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, LuminizerBlockEntity self) -
serverTick
public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, LuminizerBlockEntity self) -
setNoParticle
public void setNoParticle() -
isNoParticle
public boolean isNoParticle() -
getMovementVector
public net.minecraft.world.phys.Vec3 getMovementVector() -
getBinding
public net.minecraft.core.BlockPos getBinding()Description copied from interface:BoundGets where this block is bound to- Specified by:
getBindingin interfaceBound
-
getNextDestination
public net.minecraft.core.BlockPos getNextDestination() -
canSelect
public boolean canSelect(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Description copied from interface:WandBindableReturn true if the Wand can select this tile.- Specified by:
canSelectin interfaceWandBindable
-
bindTo
public boolean bindTo(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack wand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) Description copied from interface:WandBindableCall to bind the TileEntity to where the player clicked. Return true to deselect the TileEntity for another bind or false case the TileEntity should stay selected.- Specified by:
bindToin interfaceWandBindable
-
readPacketNBT
public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
readPacketNBTin classBotaniaBlockEntity
-
writePacketNBT
public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
writePacketNBTin classBotaniaBlockEntity
-