Package forestry.api.genetics.alleles
Interface IAlleleNaming<V>
public interface IAlleleNaming<V>
Used to generate unique IDs for values when registering value alleles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAlleleNaming<ToleranceType>Default naming for the ForestryToleranceTypeenum.static final IAlleleNaming<net.minecraft.core.Vec3i>Default naming for Minecraft's int vector. -
Method Summary
-
Field Details
-
VEC3I_NAMING
Default naming for Minecraft's int vector. -
TOLERANCE_NAMING
Default naming for the ForestryToleranceTypeenum.
-
-
Method Details
-
getName
- Returns:
- The ID of the allele that should contain this value. Generally, dominant alleles have a "d" suffix to differentiate them from recessive alleles. Alleles that wrap equal values, like two instances of the same string value, should return the same allele, even if the identities of the values are different.
-