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

public class UsePacket extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.core.BlockPos
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UsePacket(net.minecraft.core.BlockPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static UsePacket
    decode(net.minecraft.network.RegistryFriendlyByteBuf buffer)
     
    static void
    encode(UsePacket message, net.minecraft.network.RegistryFriendlyByteBuf buffer)
     
    static void
    handle(UsePacket packet, net.minecraft.server.level.ServerPlayer player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pos

      public final net.minecraft.core.BlockPos pos
  • Constructor Details

    • UsePacket

      public UsePacket(net.minecraft.core.BlockPos pos)
  • Method Details

    • encode

      public static void encode(UsePacket message, net.minecraft.network.RegistryFriendlyByteBuf buffer)
    • decode

      public static UsePacket decode(net.minecraft.network.RegistryFriendlyByteBuf buffer)
    • handle

      public static void handle(UsePacket packet, net.minecraft.server.level.ServerPlayer player)