Class ContraptionSyncLimiting

java.lang.Object
com.simibubi.create.content.contraptions.data.ContraptionSyncLimiting

public class ContraptionSyncLimiting extends Object
  • Field Details

    • SIZE_LIMIT

      public static final int SIZE_LIMIT
      Contraption entity sync is limited by the clientbound custom payload limit, since that's what Forge's extended spawn packet uses. The NBT limit is irrelevant since it's bypassed on deserialization.
      See Also:
    • PACKET_FIXER_LIMIT

      public static final int PACKET_FIXER_LIMIT
      See Also:
    • XL_PACKETS_LIMIT

      public static final int XL_PACKETS_LIMIT
      See Also:
    • BUFFER

      public static final int BUFFER
      See Also:
    • LIMIT

      public static final int LIMIT
  • Constructor Details

    • ContraptionSyncLimiting

      public ContraptionSyncLimiting()
  • Method Details

    • isTooLargeForSync

      public static boolean isTooLargeForSync(net.minecraft.nbt.CompoundTag data)
      Returns:
      true if the given NBT is too large for a contraption to be synced to clients.