Class PageTurnPacket

java.lang.Object
com.hammy275.immersivemc.common.network.packet.PageTurnPacket

public class PageTurnPacket extends Object
  • 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

      public static void encode(PageTurnPacket packet, net.minecraft.network.FriendlyByteBuf buffer)
    • decode

      public static PageTurnPacket decode(net.minecraft.network.FriendlyByteBuf buffer)
    • handle

      public static void handle(PageTurnPacket message, net.minecraft.server.level.ServerPlayer player)