Package mindustry.mod

Class DataPatcher

java.lang.Object
mindustry.mod.DataPatcher

public class DataPatcher extends Object
The current implementation is awful. Consider it a proof of concept.
  • Field Details

  • Constructor Details

    • DataPatcher

      public DataPatcher()
  • Method Details

    • isPatched

      public boolean isPatched(Object object)
    • apply

      public void apply(arc.struct.Seq<PatchAsset> patches, arc.struct.Seq<ContentAsset> content)
      Applies the specified patches. If patches were already applied, the previous ones are un-applied - they do not stack!
    • apply

      public void apply(arc.struct.Seq<PatchAsset> patches, arc.struct.Seq<ContentAsset> content, boolean reloadContentWorld)
      Applies the specified patches. If patches were already applied, the previous ones are un-applied - they do not stack!
    • unapply

      public void unapply()
    • unapply

      public void unapply(boolean reloadContentWorld)
    • getAddedContent

      public arc.struct.Seq<Content> getAddedContent()
    • fixContentArrays

      public static void fixContentArrays()