Package com.petrolpark.contamination
Class Contaminant
java.lang.Object
com.petrolpark.contamination.Contaminant
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intprotected Stringprotected Set<Contaminant>protected Set<Contaminant>static final com.mojang.serialization.Codec<Contaminant>final intprotected Stringprotected Set<Contaminant>protected Set<Contaminant>final doubleprotected net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionContaminant(double preservationProportion, int color, int absentColor, List<net.minecraft.resources.ResourceLocation> childResourceLocations) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(Contaminant contaminant) static Contaminantget(net.minecraft.resources.ResourceLocation resourceLocation) intnet.minecraft.network.chat.Componentnet.minecraft.network.chat.ComponentAll Contaminants (not just direct children) which any Contamination automatically has if they have this Contaminant.intgetColor()static ContaminantgetFromIntrinsicTag(net.minecraft.tags.TagKey<?> tagKey) static ContaminantgetFromShowIfAbsentTag(net.minecraft.tags.TagKey<?> tagKey) static ContaminantgetFromTag(net.minecraft.tags.TagKey<?> tagKey, String pathSuffix) net.minecraft.resources.ResourceLocationnet.minecraft.network.chat.ComponentgetName()net.minecraft.network.chat.ComponentAny Contaminants (not just direct parents) which, if a Contamination has, will also belong to that Contamination.doublebooleanisPreserved(double proportion)
-
Field Details
-
CODEC
-
preservationProportion
public final double preservationProportion -
color
public final int color -
absentColor
public final int absentColor -
children
-
parents
-
rl
protected net.minecraft.resources.ResourceLocation rl -
descriptionId
-
absentDescriptionId
-
childrenView
-
parentsView
-
-
Constructor Details
-
Contaminant
public Contaminant(double preservationProportion, int color, int absentColor, List<net.minecraft.resources.ResourceLocation> childResourceLocations)
-
-
Method Details
-
get
-
getFromIntrinsicTag
-
getFromShowIfAbsentTag
-
getFromTag
-
getPreservationProportion
public double getPreservationProportion() -
isPreserved
public boolean isPreserved(double proportion) -
getColor
public int getColor() -
getAbsentColor
public int getAbsentColor() -
getChildren
All Contaminants (not just direct children) which any Contamination automatically has if they have this Contaminant. -
getParents
Any Contaminants (not just direct parents) which, if a Contamination has, will also belong to that Contamination. -
getLocation
public net.minecraft.resources.ResourceLocation getLocation() -
compareTo
-
getName
public net.minecraft.network.chat.Component getName() -
getNameColored
public net.minecraft.network.chat.Component getNameColored() -
getAbsentName
public net.minecraft.network.chat.Component getAbsentName() -
getAbsentNameColored
public net.minecraft.network.chat.Component getAbsentNameColored()
-