Package net.minecraft.sounds
Class SoundEvent
java.lang.Object
net.minecraft.sounds.SoundEvent
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<SoundEvent>> private static final float
static final com.mojang.serialization.Codec
<SoundEvent> static final StreamCodec
<io.netty.buffer.ByteBuf, SoundEvent> private final ResourceLocation
private final boolean
private final float
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<SoundEvent>> -
Constructor Summary
ModifierConstructorDescriptionprivate
SoundEvent
(ResourceLocation p_215665_, float p_215666_, boolean p_215667_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static SoundEvent
create
(ResourceLocation p_263406_, Optional<Float> p_263346_) static SoundEvent
createFixedRangeEvent
(ResourceLocation p_263003_, float p_263029_) static SoundEvent
createVariableRangeEvent
(ResourceLocation p_262973_) float
getRange
(float p_215669_)
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
DIRECT_STREAM_CODEC
-
STREAM_CODEC
-
DEFAULT_RANGE
private static final float DEFAULT_RANGE- See Also:
-
location
-
range
private final float range -
newSystem
private final boolean newSystem
-
-
Constructor Details
-
SoundEvent
-
-
Method Details
-
create
-
createVariableRangeEvent
-
createFixedRangeEvent
-
getLocation
-
getRange
public float getRange(float p_215669_) -
fixedRange
-