public class BlockFace extends Pair<net.minecraft.util.math.BlockPos,net.minecraft.util.Direction>
| Constructor and Description |
|---|
BlockFace(net.minecraft.util.math.BlockPos first,
net.minecraft.util.Direction second) |
| Modifier and Type | Method and Description |
|---|---|
static BlockFace |
fromNBT(net.minecraft.nbt.CompoundNBT compound) |
net.minecraft.util.math.BlockPos |
getConnectedPos() |
net.minecraft.util.Direction |
getFace() |
BlockFace |
getOpposite() |
net.minecraft.util.Direction |
getOppositeFace() |
net.minecraft.util.math.BlockPos |
getPos() |
boolean |
isEquivalent(BlockFace other) |
net.minecraft.nbt.CompoundNBT |
serializeNBT() |
public BlockFace(net.minecraft.util.math.BlockPos first,
net.minecraft.util.Direction second)
public boolean isEquivalent(BlockFace other)
public net.minecraft.util.math.BlockPos getPos()
public net.minecraft.util.Direction getFace()
public net.minecraft.util.Direction getOppositeFace()
public BlockFace getOpposite()
public net.minecraft.util.math.BlockPos getConnectedPos()
public net.minecraft.nbt.CompoundNBT serializeNBT()
public static BlockFace fromNBT(net.minecraft.nbt.CompoundNBT compound)