Class GenericContamination
java.lang.Object
com.petrolpark.core.contamination.Contamination<Object,Object>
com.petrolpark.core.contamination.GenericContamination
- All Implemented Interfaces:
IContamination<Object,Object>
A
Contamination not tied to any specific object. When these are used, the developer will have to manage loading and saving them themselves.-
Field Summary
Fields inherited from class com.petrolpark.core.contamination.Contamination
contaminants, ORPHAN_HOLDER_LIST_CODEC, ORPHAN_HOLDER_LIST_STREAM_CODEC, orphanContaminants, stack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleDeprecated.Deprecated.getType()Deprecated.readNBT(net.minecraft.nbt.Tag tag, net.minecraft.core.HolderLookup.Provider registries) final voidsave()Deprecated.Generic Contaminations must be saved externally.net.minecraft.nbt.TagwriteNBT(net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class com.petrolpark.core.contamination.Contamination
contaminate, contaminateAll, decontaminate, decontaminateOnly, fullyDecontaminate, getOrphanHolderList, has, hasAnyContaminant, hasAnyExtrinsicContaminant, streamAllContaminants, streamOrphanExtrinsicContaminantsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.core.contamination.IContamination
isIntrinsic, streamIntrinsicContaminants, streamShownAbsentContaminants, streamShownContaminants, streamShownIfAbsentContaminants
-
Constructor Details
-
GenericContamination
public GenericContamination() -
GenericContamination
-
-
Method Details
-
readNBT
public GenericContamination readNBT(net.minecraft.nbt.Tag tag, net.minecraft.core.HolderLookup.Provider registries) -
writeNBT
public net.minecraft.nbt.Tag writeNBT(net.minecraft.core.HolderLookup.Provider registries) -
getContaminable
Deprecated. -
getType
Deprecated. -
getAmount
Deprecated. -
save
Deprecated.Generic Contaminations must be saved externally.
-