Package io.papermc.paper.registry.data
Interface SoundEventRegistryEntry.Builder
- All Superinterfaces:
RegistryBuilder<Sound>
,SoundEventRegistryEntry
- Enclosing interface:
SoundEventRegistryEntry
@Experimental
@NonExtendable
public static interface SoundEventRegistryEntry.Builder
extends SoundEventRegistryEntry, RegistryBuilder<Sound>
A mutable builder for the
SoundEventRegistryEntry
plugins may change in applicable registry events.
The following values are required for each builder:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.registry.data.SoundEventRegistryEntry
SoundEventRegistryEntry.Builder
-
Method Summary
Modifier and TypeMethodDescriptionfixedRange
(@Nullable Float fixedRange) Sets the fixed range for this sound event.Sets the resource pack location for this sound event.Methods inherited from interface io.papermc.paper.registry.data.SoundEventRegistryEntry
fixedRange, location
-
Method Details
-
location
Sets the resource pack location for this sound event.- Parameters:
location
- the location- Returns:
- this builder
-
fixedRange
@Contract(value="_ -> this", mutates="this") SoundEventRegistryEntry.Builder fixedRange(@Nullable Float fixedRange) Sets the fixed range for this sound event.- Parameters:
fixedRange
- the fixed range- Returns:
- this builder
-