Package mindustry.mod

Class ContentPatcher

java.lang.Object
mindustry.mod.ContentPatcher

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

    • patches

      public arc.struct.Seq<ContentPatcher.PatchSet> patches
      Currently active patches. Note that apply() should be called after modification.
  • Constructor Details

    • ContentPatcher

      public ContentPatcher()
  • Method Details

    • apply

      public void apply(arc.struct.Seq<String> patchArray) throws Exception
      Applies the specified patches. If patches were already applied, the previous ones are un-applied - they do not stack!
      Throws:
      Exception
    • unapply

      public void unapply()