Package org.geysermc.geyser.api.util
Interface Holders
@NonExtendable
public interface Holders
Similar to the
HolderSets in Minecraft, a Holders object can represent either a list of identifiers, or an identifier of a Minecraft registry tag.
What these identifiers represent depends on the context in which Holders are used.- Since:
- 2.9.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for the Holders object -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Holders.Builderbuilder()Creates a builder for a Holders object.static Holdersof(List<Identifier> identifiers) Creates a Holders object consisting of a list of identifiers.static Holdersof(Identifier identifier) Creates a Holders object consisting of a single identifier.static HoldersofTag(Identifier tag) Creates a Holders object consisting of a tag
-
Method Details
-
of
Creates a Holders object consisting of a single identifier.- Parameters:
identifier- the identifier the Holders object consists of- Returns:
- a new Holders object
- Since:
- 2.9.3
-
of
Creates a Holders object consisting of a list of identifiers.- Parameters:
identifiers- the identifiers the Holders object consists of- Returns:
- a new Holders object
- Since:
- 2.9.3
-
ofTag
Creates a Holders object consisting of a tag- Parameters:
tag- the tag the Holders object consists of- Returns:
- a new Holders object
- Since:
- 2.9.3
-
builder
Creates a builder for a Holders object.- Returns:
- a new builder
- Since:
- 2.9.3
-