Class HolderSet
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.HolderSet
Represents a set of holders that could either be explicit, or resolved from a tag location.
The client has to know how to resolve the tag location to get the holders.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HolderSet
public HolderSet(@NonNull @NonNull it.unimi.dsi.fastutil.ints.IntList holders) -
HolderSet
public HolderSet(@NonNull @NonNull net.kyori.adventure.key.Key location)
-
-
Method Details
-
resolve
public it.unimi.dsi.fastutil.ints.IntList resolve(Function<net.kyori.adventure.key.Key, it.unimi.dsi.fastutil.ints.IntList> tagResolver) Return either the explicit holders, or resolve the tag location to get the holders.- Parameters:
tagResolver- The function to resolve the tag location to get the holders.- Returns:
- The holders.
-
toString
-
getLocation
public @Nullable net.kyori.adventure.key.Key getLocation() -
getHolders
public @Nullable it.unimi.dsi.fastutil.ints.IntList getHolders() -
equals
-
hashCode
public int hashCode()
-