Tabnine Logo
SoundEvent.getSoundName
Code IndexAdd Tabnine to your IDE (free)

How to use
getSoundName
method
in
net.minecraft.util.SoundEvent

Best Java code snippets using net.minecraft.util.SoundEvent.getSoundName (Showing top 7 results out of 315)

origin: Esteemed-Innovation/Esteemed-Innovation

@Override
public ResourceLocation getSound() {
  return EsteemedInnovation.SOUND_WHISTLE.getSoundName();
}
origin: CoFH/CoFHCore

public SoundBase(SoundEvent sound, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, double x, double y, double z) {
  this(sound.getSoundName(), category, volume, pitch, repeat, repeatDelay, x, y, z, AttenuationType.LINEAR);
}
origin: CoFH/CoFHCore

public SoundBase(SoundEvent sound, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay) {
  this(sound.getSoundName(), category, volume, pitch, repeat, repeatDelay, 0, 0, 0, AttenuationType.NONE);
}
origin: P3pp3rF1y/AncientWarfare2

@SideOnly(Side.CLIENT)
public String name() {
  return sound != null ? sound.getSoundName().toString() : "";
}
origin: P3pp3rF1y/AncientWarfare2

@SideOnly(Side.CLIENT)
public void setSound(@Nullable SoundEvent sound) {
  this.sound = sound;
  if (sound != null) {
    boolean isRecord = sound.getSoundName().getResourcePath().startsWith("records.") || ItemRecord.getBySound(sound) != null;
    if (isRecord && length() < 120)
      setLength(120);
  }
}
origin: vadis365/TheErebus

  public void update() {
    if (currentSound != null) {
      if (!ModSounds.MUSIC_EREBUS_DIMENSION.getSoundName().equals(currentSound.getSoundLocation())) {
        mc.getSoundHandler().stopSound(currentSound);
        timeUntilMusic = MathHelper.getInt(RNG, 0, MIN_WAIT / 2);
      }
      if (!mc.getSoundHandler().isSoundPlaying(currentSound)) {
        currentSound = null;
        timeUntilMusic = Math.min(MathHelper.getInt(RNG, MIN_WAIT, MAX_WAIT), timeUntilMusic);
      }
    }
    if (currentSound == null && timeUntilMusic-- <= 0) {
      currentSound = PositionedSoundRecord.getMusicRecord(ModSounds.MUSIC_EREBUS_DIMENSION);
      mc.getSoundHandler().playSound(currentSound);
      timeUntilMusic = Integer.MAX_VALUE;
    }
  }
}
origin: MatterOverdrive/MatterOverdrive-Legacy-Edition

public SidePannel(MOGuiBase gui, int posX, int posY, int height, boolean openable) {
  super(gui, posX, posY, 37, height);
  MOElementButtonScaled button = new MOElementButtonScaled(gui, this, 0, 0, "Toggle", 16, height);
  button.setNormalTexture(new ScaleTexture(new ResourceLocation(Reference.PATH_ELEMENTS + "right_side_bar_over.png"), 32, 143).setOffsets(0, 0, 42, 100));
  button.setOverTexture(new ScaleTexture(new ResourceLocation(Reference.PATH_ELEMENTS + "right_side_bar_over.png"), 32, 143).setOffsets(0, 0, 42, 100));
  button.setSounds(MatterOverdriveSounds.guiButtonExpand.getSoundName());
  this.button = button;
  this.openable = openable;
}
net.minecraft.utilSoundEventgetSoundName

Popular methods of SoundEvent

  • <init>
  • setRegistryName
  • getRegistryName

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now