Class ClientStructurePackLoader

java.lang.Object
com.ldtteam.structurize.storage.ClientStructurePackLoader

public class ClientStructurePackLoader extends Object
Client side structure pack discovery.
  • Field Details

  • Constructor Details

    • ClientStructurePackLoader

      public ClientStructurePackLoader()
  • Method Details

    • onClientLoading

      public static void onClientLoading()
      Called on client mod construction.
    • onWorldTick

      public static void onWorldTick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
    • onServerSyncAttempt

      public static void onServerSyncAttempt(Map<String,Double> serverStructurePacks)
      On receiving server structure pack update.
      Parameters:
      serverStructurePacks - the server structure packs.
    • onStructurePackTransfer

      public static void onStructurePackTransfer(String packName, io.netty.buffer.ByteBuf payload, boolean eol)
      On reception of a new structure pack.
      Parameters:
      packName - the name of the structure pack.
      payload - the payload of the pack.
      eol - if last sync.
    • zipSlipProtect

      public static Path zipSlipProtect(ZipEntry zipEntry, Path targetDir) throws IOException
      Throws:
      IOException
    • handleSaveScanMessage

      public static void handleSaveScanMessage(net.minecraft.nbt.CompoundTag compound, String fileName)
      Handles the save message of scans.
      Parameters:
      compound - compound to store.
      fileName - milli seconds for fileName.