Class PageTurnPacket
java.lang.Object
com.hammy275.immersivemc.common.network.packet.PageTurnPacket
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
final int
final net.minecraft.core.BlockPos
-
Constructor Summary
ConstructorDescriptionPageTurnPacket
(net.minecraft.core.BlockPos pos) PageTurnPacket
(net.minecraft.core.BlockPos pos, boolean clickedRight) PageTurnPacket
(net.minecraft.core.BlockPos pos, int forcedPageIndex) PageTurnPacket
(net.minecraft.core.BlockPos pos, int forcedPageIndex, boolean clickedRight) -
Method Summary
Modifier and TypeMethodDescriptionstatic PageTurnPacket
decode
(net.minecraft.network.FriendlyByteBuf buffer) static void
encode
(PageTurnPacket packet, net.minecraft.network.FriendlyByteBuf buffer) static void
handle
(PageTurnPacket message, net.minecraft.server.level.ServerPlayer player)
-
Field Details
-
pos
public final net.minecraft.core.BlockPos pos -
forcedPageIndex
public final int forcedPageIndex -
clickedRight
public final boolean clickedRight
-
-
Constructor Details
-
PageTurnPacket
public PageTurnPacket(net.minecraft.core.BlockPos pos) -
PageTurnPacket
public PageTurnPacket(net.minecraft.core.BlockPos pos, int forcedPageIndex) -
PageTurnPacket
public PageTurnPacket(net.minecraft.core.BlockPos pos, boolean clickedRight) -
PageTurnPacket
public PageTurnPacket(net.minecraft.core.BlockPos pos, int forcedPageIndex, boolean clickedRight)
-
-
Method Details
-
encode
-
decode
-
handle
-