Class BlockLike

java.lang.Object
net.nikdo53.tinymultiblocklib.components.BlockLike

public class BlockLike extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    @Nullable net.minecraft.nbt.CompoundTag
     
    net.minecraft.core.BlockPos
     
    net.minecraft.world.level.block.state.BlockState
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockLike(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    BlockLike(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntityTag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static BlockLike
    fromPos(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)
     
    void
    move(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos offset)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)