Class BlockLike
java.lang.Object
net.nikdo53.tinymultiblocklib.components.BlockLike
-
Field Summary
FieldsModifier and TypeFieldDescription@Nullable net.minecraft.nbt.CompoundTagnet.minecraft.core.BlockPosnet.minecraft.world.level.block.state.BlockState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockLikefromPos(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) static net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> getBlockGetter(@Nullable net.minecraft.world.level.LevelReader level) voidmove(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos offset)
-
Field Details
-
pos
public net.minecraft.core.BlockPos pos -
state
public net.minecraft.world.level.block.state.BlockState state -
blockEntityTag
public @Nullable net.minecraft.nbt.CompoundTag blockEntityTag
-
-
Constructor Details
-
BlockLike
public BlockLike(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntityTag) -
BlockLike
public BlockLike(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
fromPos
public static BlockLike fromPos(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) -
move
public void move(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos offset) -
getBlockGetter
public static net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> getBlockGetter(@Nullable net.minecraft.world.level.LevelReader level)
-