Interface TraitType
- All Known Implementing Classes:
AbstractTraitType
public interface TraitType
Trait type.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
COMPARATOR
Comparator for trait types.
-
-
Method Details
-
example
net.minecraft.core.Holder<Trait> example()Default trait.- Returns:
- a trait bound to this type
-
values
net.minecraft.core.HolderSet<Trait> values()All traits bound to this type.- Returns:
- a collection of traits
-
setValues
Set the traits bound to this type.- Parameters:
values- a collection of traits
-
toString
String toString()The string representation of this trait type. It is recommended to use the registry name of this trait type.
-