Package net.minecraft.sounds
Class SoundEvent
java.lang.Object
net.minecraft.sounds.SoundEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Holder<SoundEvent>>private static final floatstatic final com.mojang.serialization.Codec<SoundEvent>private final ResourceLocationprivate final booleanprivate final float
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateSoundEvent(ResourceLocation p_215665_, float p_215666_, boolean p_215667_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static SoundEventcreate(ResourceLocation p_263406_, Optional<Float> p_263346_) static SoundEventcreateFixedRangeEvent(ResourceLocation p_263003_, float p_263029_) static SoundEventcreateVariableRangeEvent(ResourceLocation p_262973_) floatgetRange(float p_215669_) static SoundEventreadFromNetwork(FriendlyByteBuf p_263371_) voidwriteToNetwork(FriendlyByteBuf p_263344_) 
- 
Field Details- 
DIRECT_CODEC
- 
CODEC
- 
DEFAULT_RANGEprivate static final float DEFAULT_RANGE- See Also:
 
- 
location
- 
rangeprivate final float range
- 
newSystemprivate final boolean newSystem
 
- 
- 
Constructor Details- 
SoundEvent
 
- 
- 
Method Details- 
create
- 
createVariableRangeEvent
- 
createFixedRangeEvent
- 
getLocation
- 
getRangepublic float getRange(float p_215669_) 
- 
fixedRange
- 
writeToNetwork
- 
readFromNetwork
 
-