Interface PriorityOption
- All Superinterfaces:
ResourcePackOption<Integer>
Allows specifying a pack priority that decides the order on how packs are sent to the client.
If two resource packs modify the same texture - for example if one removes the pumpkin overlay and
the other is just making it translucent, one of the packs will override the other.
Specifically, the pack with the higher priority will override the pack changes of the lower priority.
- Since:
- 2.6.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.api.pack.option.ResourcePackOption
ResourcePackOption.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PriorityOptionstatic final PriorityOptionstatic final PriorityOptionstatic final PriorityOptionstatic final PriorityOption -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic PriorityOptionpriority(int priority) Constructs a priority option based on a value between 0 and 10.Methods inherited from interface org.geysermc.geyser.api.pack.option.ResourcePackOption
type, validate, value
-
Field Details
-
HIGHEST
-
HIGH
-
NORMAL
-
LOW
-
LOWEST
-
-
Method Details
-
priority
Constructs a priority option based on a value between 0 and 10. The higher the number, the higher will this pack appear in the resource pack stack.- Parameters:
priority- an integer that is above 0, but smaller than 10- Returns:
- the priority option
- Since:
- 2.6.2
-