Class AllSoundEvents.SoundEntry

java.lang.Object
com.simibubi.create.AllSoundEvents.SoundEntry
Enclosing class:
AllSoundEvents

public abstract static class AllSoundEvents.SoundEntry extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.sounds.SoundSource
     
    protected net.minecraft.resources.ResourceLocation
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SoundEntry​(net.minecraft.resources.ResourceLocation id, String subtitle, net.minecraft.sounds.SoundSource category)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
     
    abstract net.minecraft.sounds.SoundEvent
     
     
     
    boolean
     
    abstract void
    play​(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, double x, double y, double z, float volume, float pitch)
     
    void
    play​(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.core.Vec3i pos)
     
    void
    play​(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.core.Vec3i pos, float volume, float pitch)
     
    void
    play​(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.world.phys.Vec3 pos, float volume, float pitch)
     
    abstract void
    playAt​(net.minecraft.world.level.Level world, double x, double y, double z, float volume, float pitch, boolean fade)
     
    void
    playAt​(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos, float volume, float pitch, boolean fade)
     
    void
    playAt​(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 pos, float volume, float pitch, boolean fade)
     
    void
    playFrom​(net.minecraft.world.entity.Entity entity)
     
    void
    playFrom​(net.minecraft.world.entity.Entity entity, float volume, float pitch)
     
    void
    playOnServer​(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos)
     
    void
    playOnServer​(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos, float volume, float pitch)
     
    abstract void
     
    abstract void
    register​(net.minecraftforge.registries.IForgeRegistry<net.minecraft.sounds.SoundEvent> registry)
     
    abstract void
    write​(com.google.gson.JsonObject json)
     

    Methods inherited from class java.lang.Object

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

    • id

      protected net.minecraft.resources.ResourceLocation id
    • subtitle

      protected String subtitle
    • category

      protected net.minecraft.sounds.SoundSource category
  • Constructor Details

    • SoundEntry

      public SoundEntry(net.minecraft.resources.ResourceLocation id, String subtitle, net.minecraft.sounds.SoundSource category)
  • Method Details

    • prepare

      public abstract void prepare()
    • register

      public abstract void register(net.minecraftforge.registries.IForgeRegistry<net.minecraft.sounds.SoundEvent> registry)
    • write

      public abstract void write(com.google.gson.JsonObject json)
    • getMainEvent

      public abstract net.minecraft.sounds.SoundEvent getMainEvent()
    • getSubtitleKey

      public String getSubtitleKey()
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • hasSubtitle

      public boolean hasSubtitle()
    • getSubtitle

      public String getSubtitle()
    • playOnServer

      public void playOnServer(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos)
    • playOnServer

      public void playOnServer(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos, float volume, float pitch)
    • play

      public void play(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.core.Vec3i pos)
    • playFrom

      public void playFrom(net.minecraft.world.entity.Entity entity)
    • playFrom

      public void playFrom(net.minecraft.world.entity.Entity entity, float volume, float pitch)
    • play

      public void play(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.core.Vec3i pos, float volume, float pitch)
    • play

      public void play(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, net.minecraft.world.phys.Vec3 pos, float volume, float pitch)
    • play

      public abstract void play(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player entity, double x, double y, double z, float volume, float pitch)
    • playAt

      public void playAt(net.minecraft.world.level.Level world, net.minecraft.core.Vec3i pos, float volume, float pitch, boolean fade)
    • playAt

      public void playAt(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 pos, float volume, float pitch, boolean fade)
    • playAt

      public abstract void playAt(net.minecraft.world.level.Level world, double x, double y, double z, float volume, float pitch, boolean fade)