Interface EndSpike

All Superinterfaces:
Wrapper

@NullMarked @AsOf("3.0.0") public interface EndSpike extends Wrapper
A single spike (obsidian pillar) of an End spike feature, optionally topped with a guarded End crystal.
Since:
3.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Builder for EndSpike.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new builder.
    int
    The X coordinate of the center of the spike.
    int
    The Z coordinate of the center of the spike.
    static EndSpike
    decode(Object minecraftObject)
    Decodes a Minecraft End spike.
    boolean
    Whether an iron bar cage is generated around the crystal on top of the spike.
    int
    The height of the spike.
    static EndSpike
    of(int centerX, int centerZ, int radius, int height, boolean guarded)
    Creates a new end spike.
    int
    The radius of the spike.
    Converts this object back to a builder.

    Methods inherited from interface Wrapper

    asHandle, toMinecraft, unwrap
  • Method Details

    • centerX

      @AsOf("3.0.0") int centerX()
      The X coordinate of the center of the spike.
      Returns:
      the center X coordinate
      Since:
      3.0.0
    • centerZ

      @AsOf("3.0.0") int centerZ()
      The Z coordinate of the center of the spike.
      Returns:
      the center Z coordinate
      Since:
      3.0.0
    • radius

      @AsOf("3.0.0") int radius()
      The radius of the spike.
      Returns:
      the radius
      Since:
      3.0.0
    • height

      @AsOf("3.0.0") int height()
      The height of the spike.
      Returns:
      the height
      Since:
      3.0.0
    • guarded

      @AsOf("3.0.0") boolean guarded()
      Whether an iron bar cage is generated around the crystal on top of the spike.
      Returns:
      whether the crystal is guarded
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default EndSpike.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static EndSpike of(int centerX, int centerZ, int radius, int height, boolean guarded)
      Creates a new end spike.
      Parameters:
      centerX - the X coordinate of the center of the spike
      centerZ - the Z coordinate of the center of the spike
      radius - the radius of the spike
      height - the height of the spike
      guarded - whether an iron bar cage is generated around the crystal
      Returns:
      a new end spike
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static EndSpike.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0
    • decode

      @Internal static EndSpike decode(Object minecraftObject)
      Decodes a Minecraft End spike.
      Parameters:
      minecraftObject - the Minecraft End spike
      Returns:
      the decoded spike
      Since:
      3.0.0