Package net.minecraft.client.resources.sounds
Part 1/1
AbstractSoundInstance
- Full name:
net.minecraft.client.resources.sounds.AbstractSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/AbstractSoundInstance.java - Type:
class - Modifiers:
public abstract - Implements:
SoundInstance
net.minecraft.client.resources.sounds.AbstractSoundInstance#AbstractSoundInstance(ResourceLocation,SoundSource,RandomSource)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:32 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: location, source, random.
Parameters
ResourceLocation resourceLocationSoundSource soundSourceRandomSource randomSource
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
AbstractSoundInstance instance = new AbstractSoundInstance(resourceLocation, soundSource, randomSource);
net.minecraft.client.resources.sounds.AbstractSoundInstance#AbstractSoundInstance(SoundEvent,SoundSource,RandomSource)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:28 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: location().
Parameters
SoundEvent soundEventSoundSource soundSourceRandomSource randomSource
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
AbstractSoundInstance instance = new AbstractSoundInstance(soundEvent, soundSource, randomSource);
net.minecraft.client.resources.sounds.AbstractSoundInstance#getAttenuation()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:105 - Modifiers:
public - Return:
SoundInstance.Attenuation
คืออะไร
อ่านค่า Attenuation
ทำงานยังไง
คืนค่า: this.attenuation.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getDelay()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:75 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Delay
ทำงานยังไง
คืนค่า: this.delay.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getLocation()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:38 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Location
ทำงานยังไง
คืนค่า: this.location.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getPitch()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:85 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Pitch
ทำงานยังไง
เรียกต่อ: sample(). คืนค่า: this.pitch * this.sound.getPitch().sample(this.random).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getSound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:60 - Modifiers:
public - Return:
Sound
คืออะไร
อ่านค่า Sound
ทำงานยังไง
คืนค่า: this.sound.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getSource()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:65 - Modifiers:
public - Return:
SoundSource
คืออะไร
อ่านค่า Source
ทำงานยังไง
คืนค่า: this.source.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getVolume()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:80 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Volume
ทำงานยังไง
เรียกต่อ: sample(). คืนค่า: this.volume * this.sound.getVolume().sample(this.random).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getX()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:90 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า X
ทำงานยังไง
คืนค่า: this.x.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getY()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:95 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Y
ทำงานยังไง
คืนค่า: this.y.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#getZ()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:100 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Z
ทำงานยังไง
คืนค่า: this.z.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#isLooping()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:70 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Looping
ทำงานยังไง
คืนค่า: this.looping.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#isRelative()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:110 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Relative
ทำงานยังไง
คืนค่า: this.relative.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractSoundInstance#resolve(SoundManager)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:43 - Modifiers:
public - Return:
WeighedSoundEvents
คืออะไร
ดำเนินการ resolve ตาม implementation ของ AbstractSoundInstance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: sound. เรียกต่อ: equals(), getSoundEvent(), getSound(). มีจุด return อย่างน้อย 2 จุด.
Parameters
SoundManager soundManager
ตัวอย่างใช้งาน
AbstractSoundInstance instance = ...;
SoundManager soundManager = ...;
WeighedSoundEvents result = instance.resolve(soundManager);
net.minecraft.client.resources.sounds.AbstractSoundInstance#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractSoundInstance.java:115 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ AbstractSoundInstance
ทำงานยังไง
คืนค่า: "SoundInstance[" + this.location + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AbstractTickableSoundInstance
- Full name:
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractSoundInstance - Implements:
TickableSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance#AbstractTickableSoundInstance(SoundEvent,SoundSource,RandomSource)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java:13 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractTickableSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SoundEvent soundEventSoundSource soundSourceRandomSource randomSource
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
AbstractTickableSoundInstance instance = new AbstractTickableSoundInstance(soundEvent, soundSource, randomSource);
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance#isStopped()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Stopped
ทำงานยังไง
คืนค่า: this.stopped.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance#stop()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java:22 - Modifiers:
protected final - Return:
void
คืออะไร
หยุด stop
ทำงานยังไง
แก้ state: stopped, looping.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AmbientSoundHandler
- Full name:
net.minecraft.client.resources.sounds.AmbientSoundHandler - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/AmbientSoundHandler.java - Type:
interface - Modifiers:
public
net.minecraft.client.resources.sounds.AmbientSoundHandler#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/AmbientSoundHandler.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeeAggressiveSoundInstance
- Full name:
net.minecraft.client.resources.sounds.BeeAggressiveSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BeeAggressiveSoundInstance.java - Type:
class - Modifiers:
public - Extends:
BeeSoundInstance
net.minecraft.client.resources.sounds.BeeAggressiveSoundInstance#BeeAggressiveSoundInstance(Bee)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeAggressiveSoundInstance.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeeAggressiveSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: delay.
Parameters
Bee bee
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BeeAggressiveSoundInstance#getAlternativeSoundInstance()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeAggressiveSoundInstance.java:16 - Modifiers:
protected - Return:
AbstractTickableSoundInstance
คืออะไร
อ่านค่า Alternative Sound Instance
ทำงานยังไง
สร้างออบเจ็กต์: BeeFlyingSoundInstance. คืนค่า: new BeeFlyingSoundInstance(this.bee).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
return super.getAlternativeSoundInstance();
}
net.minecraft.client.resources.sounds.BeeAggressiveSoundInstance#shouldSwitchSounds()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeAggressiveSoundInstance.java:21 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Switch Sounds
ทำงานยังไง
เรียกต่อ: isAngry(). คืนค่า: !this.bee.isAngry().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeeFlyingSoundInstance
- Full name:
net.minecraft.client.resources.sounds.BeeFlyingSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BeeFlyingSoundInstance.java - Type:
class - Modifiers:
public - Extends:
BeeSoundInstance
net.minecraft.client.resources.sounds.BeeFlyingSoundInstance#BeeFlyingSoundInstance(Bee)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeFlyingSoundInstance.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeeFlyingSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Bee bee
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BeeFlyingSoundInstance#getAlternativeSoundInstance()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeFlyingSoundInstance.java:15 - Modifiers:
protected - Return:
AbstractTickableSoundInstance
คืออะไร
อ่านค่า Alternative Sound Instance
ทำงานยังไง
สร้างออบเจ็กต์: BeeAggressiveSoundInstance. คืนค่า: new BeeAggressiveSoundInstance(this.bee).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
return super.getAlternativeSoundInstance();
}
net.minecraft.client.resources.sounds.BeeFlyingSoundInstance#shouldSwitchSounds()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeFlyingSoundInstance.java:20 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Switch Sounds
ทำงานยังไง
เรียกต่อ: isAngry(). คืนค่า: this.bee.isAngry().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeeSoundInstance
- Full name:
net.minecraft.client.resources.sounds.BeeSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BeeSoundInstance.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.BeeSoundInstance#BeeSoundInstance(Bee,SoundEvent,SoundSource)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeeSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: bee, x, y, z, looping, delay. เรียกต่อ: createUnseededRandom(), getX(), getY(), getZ().
Parameters
Bee beeSoundEvent soundEventSoundSource soundSource
ตัวอย่างใช้งาน
Bee bee = ...;
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
BeeSoundInstance instance = new BeeSoundInstance(bee, soundEvent, soundSource);
net.minecraft.client.resources.sounds.BeeSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.bee.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BeeSoundInstance#canStartSilent()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:63 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Start Silent
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BeeSoundInstance#getAlternativeSoundInstance()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:73 - Modifiers:
protected abstract - Return:
AbstractTickableSoundInstance
คืออะไร
อ่านค่า Alternative Sound Instance
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
return super.getAlternativeSoundInstance();
}
net.minecraft.client.resources.sounds.BeeSoundInstance#shouldSwitchSounds()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:75 - Modifiers:
protected abstract - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Switch Sounds
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BeeSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BeeSoundInstance.java:30 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasSwitched, x, y, z, pitch, volume. เรียกต่อ: shouldSwitchSounds(), isStopped(), getInstance(), getSoundManager(), queueTickingSound(), getAlternativeSoundInstance(), isRemoved(), getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BiomeAmbientSoundsHandler
- Full name:
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java - Type:
class - Modifiers:
public - Implements:
AmbientSoundHandler
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler#BiomeAmbientSoundsHandler(LocalPlayer,SoundManager,BiomeManager)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BiomeAmbientSoundsHandler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: random, player, soundManager, biomeManager. เรียกต่อ: level(), getRandom().
Parameters
LocalPlayer localPlayerSoundManager soundManagerBiomeManager biomeManager
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
SoundManager soundManager = ...;
BiomeManager biomeManager = ...;
BiomeAmbientSoundsHandler instance = new BiomeAmbientSoundsHandler(localPlayer, soundManager, biomeManager);
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler#getMoodiness()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:44 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Moodiness
ทำงานยังไง
คืนค่า: this.moodiness.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:48 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: previousBiome, moodSettings, additionsSettings, moodiness. เรียกต่อ: values(), removeIf(), getNoiseBiomeAtPosition(), getX(), getY(), getZ(), value(), getAmbientMood(). สร้างออบเจ็กต์: BiomeAmbientSoundsHandler.LoopSoundInstance. คืนค่า: (BiomeAmbientSoundsHandler.LoopSoundInstance)loopSoundInstance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BiomeAmbientSoundsHandler$LoopSoundInstance
- Full name:
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler$LoopSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java - Type:
class - Modifiers:
public static - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler$LoopSoundInstance#fadeIn()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:143 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fadeIn ตาม implementation ของ BiomeAmbientSoundsHandler$LoopSoundInstance
ทำงานยังไง
แก้ state: fade, fadeDirection. เรียกต่อ: max().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler$LoopSoundInstance#fadeOut()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:138 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fadeOut ตาม implementation ของ BiomeAmbientSoundsHandler$LoopSoundInstance
ทำงานยังไง
แก้ state: fade, fadeDirection. เรียกต่อ: min().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler$LoopSoundInstance#LoopSoundInstance(SoundEvent)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:120 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BiomeAmbientSoundsHandler.LoopSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: looping, delay, volume, relative. เรียกต่อ: createUnseededRandom().
Parameters
SoundEvent soundEvent
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
BiomeAmbientSoundsHandler.LoopSoundInstance instance = new BiomeAmbientSoundsHandler.LoopSoundInstance(soundEvent);
net.minecraft.client.resources.sounds.BiomeAmbientSoundsHandler$LoopSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BiomeAmbientSoundsHandler.java:128 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fade, volume. เรียกต่อ: stop(), clamp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BubbleColumnAmbientSoundHandler
- Full name:
net.minecraft.client.resources.sounds.BubbleColumnAmbientSoundHandler - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/BubbleColumnAmbientSoundHandler.java - Type:
class - Modifiers:
public - Implements:
AmbientSoundHandler
net.minecraft.client.resources.sounds.BubbleColumnAmbientSoundHandler#BubbleColumnAmbientSoundHandler(LocalPlayer)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BubbleColumnAmbientSoundHandler.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BubbleColumnAmbientSoundHandler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player.
Parameters
LocalPlayer localPlayer
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
BubbleColumnAmbientSoundHandler instance = new BubbleColumnAmbientSoundHandler(localPlayer);
net.minecraft.client.resources.sounds.BubbleColumnAmbientSoundHandler#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/BubbleColumnAmbientSoundHandler.java:22 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: wasInBubbleColumn, firstTick. เรียกต่อ: level(), getBlockStatesIfLoaded(), getBoundingBox(), inflate(), deflate(), filter(), is(), findFirst().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ElytraOnPlayerSoundInstance
- Full name:
net.minecraft.client.resources.sounds.ElytraOnPlayerSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/ElytraOnPlayerSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.ElytraOnPlayerSoundInstance#ElytraOnPlayerSoundInstance(LocalPlayer)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/ElytraOnPlayerSoundInstance.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ElytraOnPlayerSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, looping, delay, volume. เรียกต่อ: createUnseededRandom().
Parameters
LocalPlayer localPlayer
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
ElytraOnPlayerSoundInstance instance = new ElytraOnPlayerSoundInstance(localPlayer);
net.minecraft.client.resources.sounds.ElytraOnPlayerSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/ElytraOnPlayerSoundInstance.java:24 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: time, x, y, z, volume, pitch. เรียกต่อ: isRemoved(), isFallFlying(), getX(), getY(), getZ(), getDeltaMovement(), lengthSqr(), clamp().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityBoundSoundInstance
- Full name:
net.minecraft.client.resources.sounds.EntityBoundSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/EntityBoundSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.EntityBoundSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/EntityBoundSoundInstance.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.entity.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.EntityBoundSoundInstance#EntityBoundSoundInstance(SoundEvent,SoundSource,float,float,Entity,long)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/EntityBoundSoundInstance.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityBoundSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: volume, pitch, entity, x, y, z. เรียกต่อ: create(), getX(), getY(), getZ().
Parameters
SoundEvent soundEventSoundSource soundSourcefloat ffloat gEntity entitylong l
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
Entity entity = ...;
EntityBoundSoundInstance instance = new EntityBoundSoundInstance(soundEvent, soundSource, 0.0F, 0.0F, entity, 0L);
net.minecraft.client.resources.sounds.EntityBoundSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/EntityBoundSoundInstance.java:29 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: x, y, z. เรียกต่อ: isRemoved(), stop(), getX(), getY(), getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
GuardianAttackSoundInstance
- Full name:
net.minecraft.client.resources.sounds.GuardianAttackSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/GuardianAttackSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.GuardianAttackSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/GuardianAttackSoundInstance.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.guardian.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.GuardianAttackSoundInstance#GuardianAttackSoundInstance(Guardian)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/GuardianAttackSoundInstance.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GuardianAttackSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: guardian, attenuation, looping, delay. เรียกต่อ: createUnseededRandom().
Parameters
Guardian guardian
ตัวอย่างใช้งาน
Guardian guardian = ...;
GuardianAttackSoundInstance instance = new GuardianAttackSoundInstance(guardian);
net.minecraft.client.resources.sounds.GuardianAttackSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/GuardianAttackSoundInstance.java:30 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: x, y, z, volume, pitch. เรียกต่อ: isRemoved(), getTarget(), getX(), getY(), getZ(), getAttackAnimationScale(), stop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartSoundInstance
- Full name:
net.minecraft.client.resources.sounds.MinecartSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/MinecartSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.MinecartSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/MinecartSoundInstance.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.minecart.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.MinecartSoundInstance#canStartSilent()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/MinecartSoundInstance.java:37 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Start Silent
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.MinecartSoundInstance#MinecartSoundInstance(AbstractMinecart)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/MinecartSoundInstance.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecart, looping, delay, volume, x, y. เรียกต่อ: createUnseededRandom(), getX(), getY(), getZ().
Parameters
AbstractMinecart abstractMinecart
ตัวอย่างใช้งาน
AbstractMinecart abstractMinecart = ...;
MinecartSoundInstance instance = new MinecartSoundInstance(abstractMinecart);
net.minecraft.client.resources.sounds.MinecartSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/MinecartSoundInstance.java:42 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: x, y, z, pitch, volume. เรียกต่อ: isRemoved(), stop(), getX(), getY(), getZ(), getDeltaMovement(), horizontalDistance(), isOnRails().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RidingMinecartSoundInstance
- Full name:
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/RidingMinecartSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/RidingMinecartSoundInstance.java:31 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.minecart.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance#canStartSilent()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/RidingMinecartSoundInstance.java:36 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Start Silent
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance#RidingMinecartSoundInstance(Player,AbstractMinecart,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/RidingMinecartSoundInstance.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RidingMinecartSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, minecart, underwaterSound, attenuation, looping, delay. เรียกต่อ: createUnseededRandom().
Parameters
Player playerAbstractMinecart abstractMinecartboolean bl
ตัวอย่างใช้งาน
Player player = ...;
AbstractMinecart abstractMinecart = ...;
RidingMinecartSoundInstance instance = new RidingMinecartSoundInstance(player, abstractMinecart, true);
net.minecraft.client.resources.sounds.RidingMinecartSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/RidingMinecartSoundInstance.java:41 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: volume. เรียกต่อ: isRemoved(), isPassenger(), getVehicle(), stop(), isUnderWater(), getDeltaMovement(), horizontalDistance(), isOnRails().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SimpleSoundInstance
- Full name:
net.minecraft.client.resources.sounds.SimpleSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/SimpleSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractSoundInstance
net.minecraft.client.resources.sounds.SimpleSoundInstance#forAmbientAddition(SoundEvent)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:51 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forAmbientAddition ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: forLocalAmbience(). คืนค่า: forLocalAmbience(soundEvent, 1.0F, 1.0F).
Parameters
SoundEvent soundEvent
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SimpleSoundInstance result = SimpleSoundInstance.forAmbientAddition(soundEvent);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forAmbientMood(SoundEvent,RandomSource,double,double,double)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:55 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forAmbientMood ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
สร้างออบเจ็กต์: SimpleSoundInstance. คืนค่า: new SimpleSoundInstance(soundEvent, SoundSource.AMBIENT, 1.0F, 1.0F, randomSource, false, 0, SoundInstance.Attenuation.LINEAR, d, e, f).
Parameters
SoundEvent soundEventRandomSource randomSourcedouble ddouble edouble f
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
RandomSource randomSource = ...;
SimpleSoundInstance result = SimpleSoundInstance.forAmbientMood(soundEvent, randomSource, 0.0D, 0.0D, 0.0D);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forJukeboxSong(SoundEvent,Vec3)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:39 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forJukeboxSong ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: createUnseededRandom(). สร้างออบเจ็กต์: SimpleSoundInstance.
Parameters
SoundEvent soundEventVec3 vec3
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
Vec3 vec3 = ...;
SimpleSoundInstance result = SimpleSoundInstance.forJukeboxSong(soundEvent, vec3);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forLocalAmbience(SoundEvent,float,float)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:45 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forLocalAmbience ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: location(), createUnseededRandom(). สร้างออบเจ็กต์: SimpleSoundInstance.
Parameters
SoundEvent soundEventfloat ffloat g
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SimpleSoundInstance result = SimpleSoundInstance.forLocalAmbience(soundEvent, 0.0F, 0.0F);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forMusic(SoundEvent)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:33 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forMusic ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: location(), createUnseededRandom(). สร้างออบเจ็กต์: SimpleSoundInstance.
Parameters
SoundEvent soundEvent
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SimpleSoundInstance#forUI(Holder<SoundEvent>,float)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:23 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forUI ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: value(). คืนค่า: forUI((SoundEvent)holder.value(), f).
Parameters
Holder<SoundEvent> holderfloat f
ตัวอย่างใช้งาน
Holder<SoundEvent> holder = ...;
SimpleSoundInstance result = SimpleSoundInstance.forUI(holder, 0.0F);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forUI(SoundEvent,float)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:19 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forUI ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
คืนค่า: forUI(soundEvent, f, 0.25F).
Parameters
SoundEvent soundEventfloat f
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SimpleSoundInstance result = SimpleSoundInstance.forUI(soundEvent, 0.0F);
net.minecraft.client.resources.sounds.SimpleSoundInstance#forUI(SoundEvent,float,float)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:27 - Modifiers:
public static - Return:
SimpleSoundInstance
คืออะไร
ดำเนินการ forUI ตาม implementation ของ SimpleSoundInstance
ทำงานยังไง
เรียกต่อ: location(), createUnseededRandom(). สร้างออบเจ็กต์: SimpleSoundInstance.
Parameters
SoundEvent soundEventfloat ffloat g
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SimpleSoundInstance result = SimpleSoundInstance.forUI(soundEvent, 0.0F, 0.0F);
net.minecraft.client.resources.sounds.SimpleSoundInstance#SimpleSoundInstance(ResourceLocation,SoundSource,float,float,RandomSource,boolean,int,SoundInstance.Attenuation,double,double,double,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:79 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: volume, pitch, x, y, z, looping.
Parameters
ResourceLocation resourceLocationSoundSource soundSourcefloat ffloat gRandomSource randomSourceboolean blint iSoundInstance.Attenuation attenuationdouble ddouble edouble hboolean bl2
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
SoundInstance.Attenuation attenuation = ...;
SimpleSoundInstance instance = new SimpleSoundInstance(resourceLocation, soundSource, 0.0F, 0.0F, randomSource, true, 0, attenuation, 0.0D, 0.0D, 0.0D, true);
net.minecraft.client.resources.sounds.SimpleSoundInstance#SimpleSoundInstance(SoundEvent,SoundSource,float,float,RandomSource,BlockPos)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ().
Parameters
SoundEvent soundEventSoundSource soundSourcefloat ffloat gRandomSource randomSourceBlockPos blockPos
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
BlockPos blockPos = ...;
SimpleSoundInstance instance = new SimpleSoundInstance(soundEvent, soundSource, 0.0F, 0.0F, randomSource, blockPos);
net.minecraft.client.resources.sounds.SimpleSoundInstance#SimpleSoundInstance(SoundEvent,SoundSource,float,float,RandomSource,double,double,double)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SimpleSoundInstance.java:59 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SoundEvent soundEventSoundSource soundSourcefloat ffloat gRandomSource randomSourcedouble ddouble edouble h
ตัวอย่างใช้งาน
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
RandomSource randomSource = ...;
SimpleSoundInstance instance = new SimpleSoundInstance(soundEvent, soundSource, 0.0F, 0.0F, randomSource, 0.0D, 0.0D, 0.0D);
SnifferSoundInstance
- Full name:
net.minecraft.client.resources.sounds.SnifferSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/SnifferSoundInstance.java - Type:
class - Modifiers:
public - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.SnifferSoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SnifferSoundInstance.java:23 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
เรียกต่อ: isSilent(). คืนค่า: !this.sniffer.isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SnifferSoundInstance#SnifferSoundInstance(Sniffer)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SnifferSoundInstance.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SnifferSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: sniffer, attenuation, looping, delay. เรียกต่อ: createUnseededRandom().
Parameters
Sniffer sniffer
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SnifferSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SnifferSoundInstance.java:28 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: x, y, z, volume, pitch. เรียกต่อ: isRemoved(), getTarget(), canPlayDiggingSound(), getX(), getY(), getZ(), stop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Sound
- Full name:
net.minecraft.client.resources.sounds.Sound - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/Sound.java - Type:
class - Modifiers:
public - Implements:
Weighted<Sound>
net.minecraft.client.resources.sounds.Sound#getAttenuationDistance()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:80 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Attenuation Distance
ทำงานยังไง
คืนค่า: this.attenuationDistance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getLocation()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:36 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Location
ทำงานยังไง
คืนค่า: this.location.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getPath()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:40 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
อ่านค่า Path
ทำงานยังไง
เรียกต่อ: idToFile(). คืนค่า: SOUND_LISTER.idToFile(this.location).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getPitch()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:48 - Modifiers:
public - Return:
SampledFloat
คืออะไร
อ่านค่า Pitch
ทำงานยังไง
คืนค่า: this.pitch.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getSound(RandomSource)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:57 - Modifiers:
public - Return:
Sound
คืออะไร
อ่านค่า Sound
ทำงานยังไง
คืนค่า: this.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
Sound instance = ...;
RandomSource randomSource = ...;
Sound result = instance.getSound(randomSource);
net.minecraft.client.resources.sounds.Sound#getType()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:68 - Modifiers:
public - Return:
Sound.Type
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getVolume()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:44 - Modifiers:
public - Return:
SampledFloat
คืออะไร
อ่านค่า Volume
ทำงานยังไง
คืนค่า: this.volume.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#getWeight()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:52 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Weight
ทำงานยังไง
คืนค่า: this.weight.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#preloadIfRequired(SoundEngine)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:61 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ preloadIfRequired ตาม implementation ของ Sound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: requestPreload().
Parameters
SoundEngine soundEngine
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#shouldPreload()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:76 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Preload
ทำงานยังไง
คืนค่า: this.preload.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#shouldStream()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:72 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Stream
ทำงานยังไง
คืนค่า: this.stream.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.Sound#Sound(ResourceLocation,SampledFloat,SampledFloat,int,Sound.Type,boolean,boolean,int)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Sound ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: location, volume, pitch, weight, type, stream.
Parameters
ResourceLocation resourceLocationSampledFloat sampledFloatSampledFloat sampledFloat2int iSound.Type typeboolean blboolean bl2int j
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SampledFloat sampledFloat = ...;
SampledFloat sampledFloat2 = ...;
Sound.Type type = ...;
Sound instance = new Sound(resourceLocation, sampledFloat, sampledFloat2, 0, type, true, true, 0);
net.minecraft.client.resources.sounds.Sound#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:84 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Sound
ทำงานยังไง
คืนค่า: "Sound[" + this.location + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Sound$Type
- Full name:
net.minecraft.client.resources.sounds.Sound$Type - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/Sound.java - Type:
enum - Modifiers:
public
net.minecraft.client.resources.sounds.Sound$Type#getByName(String)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/Sound.java:100 - Modifiers:
public static - Return:
Sound.Type
คืออะไร
อ่านค่า By Name
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: values(), equals(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
SoundEventRegistration
- Full name:
net.minecraft.client.resources.sounds.SoundEventRegistration - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/SoundEventRegistration.java - Type:
class - Modifiers:
public
net.minecraft.client.resources.sounds.SoundEventRegistration#getSounds()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundEventRegistration.java:21 - Modifiers:
public - Return:
List<Sound>
คืออะไร
อ่านค่า Sounds
ทำงานยังไง
คืนค่า: this.sounds.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundEventRegistration#getSubtitle()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundEventRegistration.java:29 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Subtitle
ทำงานยังไง
คืนค่า: this.subtitle.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundEventRegistration#isReplace()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundEventRegistration.java:25 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Replace
ทำงานยังไง
คืนค่า: this.replace.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundEventRegistration#SoundEventRegistration(List<Sound>,boolean,String)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundEventRegistration.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SoundEventRegistration ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: sounds, replace, subtitle.
Parameters
List<Sound> listboolean blString string
ตัวอย่างใช้งาน
List<Sound> list = ...;
SoundEventRegistration instance = new SoundEventRegistration(list, true, "value");
SoundEventRegistrationSerializer
- Full name:
net.minecraft.client.resources.sounds.SoundEventRegistrationSerializer - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/SoundEventRegistrationSerializer.java - Type:
class - Modifiers:
public - Implements:
JsonDeserializer<SoundEventRegistration>
net.minecraft.client.resources.sounds.SoundEventRegistrationSerializer#deserialize(JsonElement,Type,JsonDeserializationContext)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundEventRegistrationSerializer.java:24 - Modifiers:
public - Return:
SoundEventRegistration
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล deserialize
ทำงานยังไง
เรียกต่อ: convertToJsonObject(), getAsBoolean(), getAsString(), getSounds(). สร้างออบเจ็กต์: SoundEventRegistration. คืนค่า: new SoundEventRegistration(list, bl, string).
Parameters
JsonElement jsonElementType typeJsonDeserializationContext jsonDeserializationContext
Throws
JsonParseException
ตัวอย่างใช้งาน
SoundEventRegistrationSerializer instance = ...;
JsonElement jsonElement = ...;
Type type = ...;
JsonDeserializationContext jsonDeserializationContext = ...;
SoundEventRegistration result = instance.deserialize(jsonElement, type, jsonDeserializationContext);
SoundInstance
- Full name:
net.minecraft.client.resources.sounds.SoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/SoundInstance.java - Type:
interface - Modifiers:
public - Implements:
FabricSoundInstance
net.minecraft.client.resources.sounds.SoundInstance#canPlaySound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:49 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Play Sound
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#canStartSilent()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:45 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Start Silent
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#createUnseededRandom()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:53 - Modifiers:
static - Return:
RandomSource
คืออะไร
สร้าง Unseeded Random
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: RandomSource.create().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getAttenuation()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:43 - Modifiers: ``
- Return:
SoundInstance.Attenuation
คืออะไร
อ่านค่า Attenuation
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getDelay()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:31 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Delay
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getLocation()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:18 - Modifiers: ``
- Return:
ResourceLocation
คืออะไร
อ่านค่า Location
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getPitch()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:35 - Modifiers: ``
- Return:
float
คืออะไร
อ่านค่า Pitch
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getSound()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:23 - Modifiers: ``
- Return:
Sound
คืออะไร
อ่านค่า Sound
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getSource()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:25 - Modifiers: ``
- Return:
SoundSource
คืออะไร
อ่านค่า Source
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getVolume()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:33 - Modifiers: ``
- Return:
float
คืออะไร
อ่านค่า Volume
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getX()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:37 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า X
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getY()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:39 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า Y
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#getZ()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:41 - Modifiers: ``
- Return:
double
คืออะไร
อ่านค่า Z
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#isLooping()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:27 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Looping
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#isRelative()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:29 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Relative
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.SoundInstance#resolve(SoundManager)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/SoundInstance.java:20 - Modifiers: ``
- Return:
WeighedSoundEvents
คืออะไร
ดำเนินการ resolve ตาม implementation ของ SoundInstance
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
SoundManager soundManager
ตัวอย่างใช้งาน
SoundInstance instance = ...;
SoundManager soundManager = ...;
WeighedSoundEvents result = instance.resolve(soundManager);
TickableSoundInstance
- Full name:
net.minecraft.client.resources.sounds.TickableSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/TickableSoundInstance.java - Type:
interface - Modifiers:
public - Implements:
SoundInstance
net.minecraft.client.resources.sounds.TickableSoundInstance#isStopped()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/TickableSoundInstance.java:8 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Stopped
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.TickableSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/TickableSoundInstance.java:10 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
UnderwaterAmbientSoundHandler
- Full name:
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundHandler - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/UnderwaterAmbientSoundHandler.java - Type:
class - Modifiers:
public - Implements:
AmbientSoundHandler
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundHandler#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundHandler.java:24 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: tickDelay. เรียกต่อ: isUnderWater(), level(), nextFloat(), play(), SubSound(). สร้างออบเจ็กต์: UnderwaterAmbientSoundInstances.SubSound.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundHandler#UnderwaterAmbientSoundHandler(LocalPlayer,SoundManager)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundHandler.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ UnderwaterAmbientSoundHandler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, soundManager.
Parameters
LocalPlayer localPlayerSoundManager soundManager
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
SoundManager soundManager = ...;
UnderwaterAmbientSoundHandler instance = new UnderwaterAmbientSoundHandler(localPlayer, soundManager);
UnderwaterAmbientSoundInstances$SubSound
- Full name:
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$SubSound - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java - Type:
class - Modifiers:
public static - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$SubSound#SubSound(LocalPlayer,SoundEvent)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java:16 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ UnderwaterAmbientSoundInstances.SubSound ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, looping, delay, volume, relative. เรียกต่อ: createUnseededRandom().
Parameters
LocalPlayer localPlayerSoundEvent soundEvent
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
SoundEvent soundEvent = ...;
UnderwaterAmbientSoundInstances.SubSound instance = new UnderwaterAmbientSoundInstances.SubSound(localPlayer, soundEvent);
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$SubSound#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java:25 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRemoved(), isUnderWater(), stop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
UnderwaterAmbientSoundInstances$UnderwaterAmbientSoundInstance
- Full name:
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$UnderwaterAmbientSoundInstance - Package:
net.minecraft.client.resources.sounds - Source:
clientOnly—net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java - Type:
class - Modifiers:
public static - Extends:
AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$UnderwaterAmbientSoundInstance#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java:48 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fade, volume. เรียกต่อ: isRemoved(), isUnderWater(), min(), max(), stop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.resources.sounds.UnderwaterAmbientSoundInstances$UnderwaterAmbientSoundInstance#UnderwaterAmbientSoundInstance(LocalPlayer)
- Origin:
clientOnly - Source:
net/minecraft/client/resources/sounds/UnderwaterAmbientSoundInstances.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: player, looping, delay, volume, relative. เรียกต่อ: createUnseededRandom().
Parameters
LocalPlayer localPlayer
ตัวอย่างใช้งาน
LocalPlayer localPlayer = ...;
UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance instance = new UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance(localPlayer);