Class GenericContamination

java.lang.Object
com.petrolpark.core.contamination.Contamination<Object,Object>
com.petrolpark.core.contamination.GenericContamination
All Implemented Interfaces:
IContamination<Object,Object>

public class GenericContamination extends Contamination<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.
  • Constructor Details

    • GenericContamination

      public GenericContamination()
    • GenericContamination

      public GenericContamination(Runnable onSave)
  • 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 public Contaminable<Object,Object> getContaminable()
      Deprecated.
    • getType

      @Deprecated public Object getType()
      Deprecated.
    • getAmount

      @Deprecated public double getAmount()
      Deprecated.
    • save

      @Deprecated public final void save()
      Deprecated.
      Generic Contaminations must be saved externally.