Package io.papermc.paper.registry.data
Interface GameEventRegistryEntry.Builder
- All Superinterfaces:
GameEventRegistryEntry
,RegistryBuilder<GameEvent>
- Enclosing interface:
GameEventRegistryEntry
@Experimental
@NonExtendable
public static interface GameEventRegistryEntry.Builder
extends GameEventRegistryEntry, RegistryBuilder<GameEvent>
A mutable builder for the
GameEventRegistryEntry
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.GameEventRegistryEntry
GameEventRegistryEntry.Builder
-
Method Summary
Modifier and TypeMethodDescriptionrange
(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int range) Sets the range in which this game event should notify its listeners.Methods inherited from interface io.papermc.paper.registry.data.GameEventRegistryEntry
range
-
Method Details
-
range
@Contract(value="_ -> this", mutates="this") GameEventRegistryEntry.Builder range(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int range) Sets the range in which this game event should notify its listeners.- Parameters:
range
- the range of blocks.- Returns:
- this builder instance.
- See Also:
-