Class ScanToolData.Slot

java.lang.Object
com.ldtteam.structurize.util.ScanToolData.Slot
Enclosing class:
ScanToolData

public static class ScanToolData.Slot extends Object
Data for one scan slot
  • Constructor Details

    • Slot

      public Slot(@NotNull @NotNull String name, @NotNull @NotNull BoxPreviewData box)
      Construct directly
      Parameters:
      name - the schematic name
      box - the schematic box
    • Slot

      public Slot(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Load from tag
      Parameters:
      tag - the tag
  • Method Details

    • write

      public net.minecraft.nbt.CompoundTag write(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Serialize
      Parameters:
      tag - target tag
      Returns:
      the same tag (for convenience)
    • isEmpty

      public boolean isEmpty()
    • getBox

      @NotNull public @NotNull BoxPreviewData getBox()
    • getName

      @NotNull public @NotNull String getName()