Class GeigerSoundPacket

java.lang.Object
com.hbm_m.network.sounds.GeigerSoundPacket
All Implemented Interfaces:
S2CPacket

public class GeigerSoundPacket extends Object implements S2CPacket
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeigerSoundPacket(net.minecraft.resources.ResourceLocation soundLocation, float volume, float pitch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(net.minecraft.network.FriendlyByteBuf buf)
     
    static void
    handle(GeigerSoundPacket msg, dev.architectury.networking.NetworkManager.PacketContext context)
     
    static void
    sendTo(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceLocation sound, float volume, float pitch)
     
    void
    write(net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class java.lang.Object

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

    • GeigerSoundPacket

      public GeigerSoundPacket(net.minecraft.resources.ResourceLocation soundLocation, float volume, float pitch)
  • Method Details

    • decode

      public static GeigerSoundPacket decode(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface S2CPacket
    • handle

      public static void handle(GeigerSoundPacket msg, dev.architectury.networking.NetworkManager.PacketContext context)
    • sendTo

      public static void sendTo(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceLocation sound, float volume, float pitch)