Class Structure

java.lang.Object
io.github.addoncommunity.galactifun.api.structures.Structure

public final class Structure extends Object
A structure that can be pasted
  • Method Details

    • getLoadedKeys

      @Nonnull public static Set<String> getLoadedKeys()
      Get the paths of all loaded structures
    • getByKey

      @Nullable public static Structure getByKey(String name)
      Gets a structure that was loaded from a file by name
    • get

      @Nonnull public static Structure get(org.bukkit.plugin.java.JavaPlugin plugin, String path)
      Gets a structure or loads from a plugins resources
    • loadFromString

      @Nonnull public static Structure loadFromString(String string)
    • create

      @Nonnull public static Structure create(StructureRotation rotation, org.bukkit.block.Block pos1, org.bukkit.block.Block pos2)
    • paste

      public void paste(org.bukkit.block.Block pos, StructureRotation rotation)
    • saveToString

      public String saveToString()