Interface ClaimSchematic


public interface ClaimSchematic
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Applies schematic to claim.
    Gets a new claim schematic builder instance for ClaimSchematic.Builder.
    Gets the claim schematic is stored in.
    Gets the schematic creation date.
    Gets the name of the schematic.
    com.flowpowered.math.vector.Vector3i
    Gets origin of schematic.
    boolean
    Whether schematic has entities.
    boolean
    Whether schematic contains NBT data.
    void
    setOrigin(int x, int y, int z)
    Sets origin of schematic.
    void
    setOrigin(com.flowpowered.math.vector.Vector3i pos)
    Sets origin of schematic.
  • Method Details

    • getClaim

      Claim getClaim()
      Gets the claim schematic is stored in.
      Returns:
      The claim schematic is stored in
    • getName

      String getName()
      Gets the name of the schematic.
      Returns:
      The schematic name
    • getDateCreated

      Instant getDateCreated()
      Gets the schematic creation date.
      Returns:
      The date created
    • getOrigin

      com.flowpowered.math.vector.Vector3i getOrigin()
      Gets origin of schematic.
      Returns:
      The origin pos
    • setOrigin

      void setOrigin(com.flowpowered.math.vector.Vector3i pos)
      Sets origin of schematic.
      Parameters:
      pos - The new origin pos
    • setOrigin

      void setOrigin(int x, int y, int z)
      Sets origin of schematic.
      Parameters:
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
    • hasEntities

      boolean hasEntities()
      Whether schematic has entities.
      Returns:
      true if schematic has entities, false if not
    • hasNbtData

      boolean hasNbtData()
      Whether schematic contains NBT data.
      Returns:
      true if schematic contains NBT data, false if not
    • apply

      boolean apply()
      Applies schematic to claim.
      Returns:
      If schematic apply was successful, false if not
    • builder

      static ClaimSchematic.Builder builder()
      Gets a new claim schematic builder instance for ClaimSchematic.Builder.
      Returns:
      A new claim schematic builder instance