Class BlockFace

java.lang.Object
net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.core.Direction>
net.createmod.catnip.math.BlockFace

public class BlockFace extends Pair<net.minecraft.core.BlockPos,net.minecraft.core.Direction>
  • Field Details

    • CODEC

      public static com.mojang.serialization.Codec<BlockFace> CODEC
    • STREAM_CODEC

      public static net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,BlockFace> STREAM_CODEC
  • Constructor Details

    • BlockFace

      public BlockFace(net.minecraft.core.BlockPos first, net.minecraft.core.Direction second)
  • Method Details

    • isEquivalent

      public boolean isEquivalent(BlockFace other)
    • getPos

      public net.minecraft.core.BlockPos getPos()
    • getFace

      public net.minecraft.core.Direction getFace()
    • getOppositeFace

      public net.minecraft.core.Direction getOppositeFace()
    • getOpposite

      public BlockFace getOpposite()
    • getConnectedPos

      public net.minecraft.core.BlockPos getConnectedPos()
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT()
    • fromNBT

      public static BlockFace fromNBT(net.minecraft.nbt.CompoundTag compound)