Interface IAlleleNaming<V>


public interface IAlleleNaming<V>
Used to generate unique IDs for values when registering value alleles.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default naming for the Forestry ToleranceType enum.
    static final IAlleleNaming<net.minecraft.core.Vec3i>
    Default naming for Minecraft's int vector.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    getName(V value, boolean dominant)
     
  • Field Details

  • Method Details

    • getName

      net.minecraft.resources.ResourceLocation getName(V value, boolean dominant)
      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.