Package net.createmod.catnip.math
Class BlockFace
java.lang.Object
net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.core.Direction>
net.createmod.catnip.math.BlockFace
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockFace(net.minecraft.core.BlockPos first, net.minecraft.core.Direction second) -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockFacefromNBT(net.minecraft.nbt.CompoundTag compound) net.minecraft.core.BlockPosnet.minecraft.core.DirectiongetFace()net.minecraft.core.Directionnet.minecraft.core.BlockPosgetPos()booleanisEquivalent(BlockFace other) net.minecraft.nbt.CompoundTag
-
Field Details
-
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
-
getPos
public net.minecraft.core.BlockPos getPos() -
getFace
public net.minecraft.core.Direction getFace() -
getOppositeFace
public net.minecraft.core.Direction getOppositeFace() -
getOpposite
-
getConnectedPos
public net.minecraft.core.BlockPos getConnectedPos() -
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT() -
fromNBT
-