Package forestry.api.plugin
Interface IButterflySpeciesBuilder
- All Superinterfaces:
ISpeciesBuilder<IButterflySpeciesType,IButterflySpecies, IButterflySpeciesBuilder>
public interface IButterflySpeciesBuilder
extends ISpeciesBuilder<IButterflySpeciesType,IButterflySpecies,IButterflySpeciesBuilder>
Builder used to register new butterfly and moth species and configure already existing ones.
Use
ILepidopterologyRegistration.registerSpecies(net.minecraft.resources.ResourceLocation, java.lang.String, java.lang.String, boolean, java.awt.Color, float) to obtain instances of this class.-
Nested Class Summary
Nested classes/interfaces inherited from interface forestry.api.plugin.ISpeciesBuilder
ISpeciesBuilder.ISpeciesFactory<T extends ISpeciesType<S,?>, S extends ISpecies<?>, B extends ISpeciesBuilder<T, S, B>> -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatintnet.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>booleanisMoth()booleansetFlightDistance(float flightDistance) setMoth(boolean moth) Marks this butterfly species as a moth.setNocturnal(boolean nocturnal) Marks this butterfly as nocturnal, which makes the butterfly only spawn at night.setRarity(float rarity) default IButterflySpeciesBuildersetSerumColor(Color color) Deprecated, for removal: This API element is subject to removal in a future version.Use the variant that accepts a TextColorsetSerumColor(net.minecraft.network.chat.TextColor color) setSpawnBiomes(net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTag) Sets a tag limiting the biomes this butterfly can spawn in.Methods inherited from interface forestry.api.plugin.ISpeciesBuilder
addMutations, buildGenome, buildMutations, createSpeciesFactory, getAuthority, getComplexity, getEscritoireColor, getGenus, getHumidity, getSpecies, getTemperature, hasGlint, isDominant, isSecret, setAuthority, setComplexity, setDominant, setEscritoireColor, setEscritoireColor, setFactory, setGenome, setGlint, setHumidity, setSecret, setTemperature
-
Method Details
-
setSerumColor
Deprecated, for removal: This API element is subject to removal in a future version.Use the variant that accepts a TextColor -
setSerumColor
-
setFlightDistance
-
setNocturnal
Marks this butterfly as nocturnal, which makes the butterfly only spawn at night. Most, but not all, nocturnal butterflies are actually moths, so setsetMoth(boolean)if this species is actually a moth. -
setMoth
Marks this butterfly species as a moth. The species name will show as "... Moth" instead of "... Butterfly". Most, but not all, moths are nocturnal, sosetNocturnal(boolean)should probably be set too. -
setSpawnBiomes
IButterflySpeciesBuilder setSpawnBiomes(net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTag) Sets a tag limiting the biomes this butterfly can spawn in. By default, butterflies can spawn in any biome, given the climate at the spawn position is correct.- Parameters:
biomeTag- A set of biomes to limit spawning of this butterfly to.
-
setRarity
-
getSerumColor
int getSerumColor() -
getFlightDistance
float getFlightDistance() -
isNocturnal
boolean isNocturnal() -
isMoth
boolean isMoth() -
getSpawnBiomes
@Nullable net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> getSpawnBiomes() -
getRarity
float getRarity() -
buildProducts
-
buildCaterpillarProducts
-