Interface IChromosome.IReferenceResolver<R>
- Type Parameters:
R- The resolved behavior object type.
- Enclosing interface:
IChromosome<V>
public static interface IChromosome.IReferenceResolver<R>
Resolves a reference chromosome's stored
ResourceLocation to its behavior object and back.
Resolution is lazy: it reads the code registry at call time, after registries have been populated.-
Method Summary
Modifier and TypeMethodDescriptionget(net.minecraft.resources.ResourceLocation id) booleanisDominant(net.minecraft.resources.ResourceLocation id)
-
Method Details
-
get
-
isDominant
boolean isDominant(net.minecraft.resources.ResourceLocation id) - Returns:
- The default dominance of the referenced value (its declared
isDominant()). Used when a reference allele is created from an id without an explicit dominance (default genomes, genome overrides).
-