java.lang.Object
net.darkhax.bookshelf.api.data.sound.Sound
All Implemented Interfaces:
ISound

public class Sound extends Object implements ISound
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ISerializer<Sound>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Sound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float pitch, float volume)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     
    void
    playSoundAt(net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.player.Player originator, double posX, double posY, double posZ)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.darkhax.bookshelf.api.data.sound.ISound

    playSoundAt, playSoundAt
  • Field Details

  • Constructor Details

    • Sound

      public Sound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float pitch, float volume)
  • Method Details

    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • playSoundAt

      public void playSoundAt(net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.world.entity.player.Player originator, double posX, double posY, double posZ)
      Specified by:
      playSoundAt in interface ISound