Class BlockUsePacketC2S

java.lang.Object
com.binaris.wizardry.core.networking.c2s.BlockUsePacketC2S
All Implemented Interfaces:
Message

public class BlockUsePacketC2S extends Object implements Message
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockUsePacketC2S(net.minecraft.core.BlockPos pos)
     
    BlockUsePacketC2S(net.minecraft.network.FriendlyByteBuf pBuf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(net.minecraft.network.FriendlyByteBuf pBuf)
     
    net.minecraft.resources.ResourceLocation
     
    void
    handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.binaris.wizardry.core.networking.abst.Message

    handleClient
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • BlockUsePacketC2S

      public BlockUsePacketC2S(net.minecraft.core.BlockPos pos)
    • BlockUsePacketC2S

      public BlockUsePacketC2S(net.minecraft.network.FriendlyByteBuf pBuf)
  • Method Details

    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface Message
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf pBuf)
      Specified by:
      encode in interface Message
    • handleServer

      public void handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player)
      Specified by:
      handleServer in interface Message