Package com.pixelmonmod.tcg.network
Class ByteBufTCG
java.lang.Object
com.pixelmonmod.tcg.network.ByteBufTCG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.BlockPos
readBlockPos
(net.minecraft.network.FriendlyByteBuf buf) static ImmutableCard
readCard
(net.minecraft.network.FriendlyByteBuf buf) static List<ImmutableCard>
readCardList
(net.minecraft.network.FriendlyByteBuf buf) static CommonCardState
readCardState
(net.minecraft.network.FriendlyByteBuf buf) static void
writeBlockPos
(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.core.BlockPos blockPos) static void
writeCard
(net.minecraft.network.FriendlyByteBuf buf, ImmutableCard card) static void
writeCardList
(net.minecraft.network.FriendlyByteBuf buf, List<ImmutableCard> cards) static void
writeCardState
(net.minecraft.network.FriendlyByteBuf buf, CommonCardState cardState) static void
writeFaceDownCard
(net.minecraft.network.FriendlyByteBuf buf) static void
writeFaceDownCardList
(net.minecraft.network.FriendlyByteBuf buf, List<ImmutableCard> cards)
-
Constructor Details
-
ByteBufTCG
public ByteBufTCG()
-
-
Method Details
-
writeBlockPos
public static void writeBlockPos(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.core.BlockPos blockPos) -
readBlockPos
public static net.minecraft.core.BlockPos readBlockPos(net.minecraft.network.FriendlyByteBuf buf) -
writeCard
-
writeFaceDownCard
public static void writeFaceDownCard(net.minecraft.network.FriendlyByteBuf buf) -
readCard
-
writeCardList
public static void writeCardList(net.minecraft.network.FriendlyByteBuf buf, List<ImmutableCard> cards) -
writeFaceDownCardList
public static void writeFaceDownCardList(net.minecraft.network.FriendlyByteBuf buf, List<ImmutableCard> cards) -
readCardList
-
readCardState
-
writeCardState
public static void writeCardState(net.minecraft.network.FriendlyByteBuf buf, CommonCardState cardState)
-