Interface EndSpike
- All Superinterfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic EndSpike.Builderbuilder()Creates a new builder.intcenterX()The X coordinate of the center of the spike.intcenterZ()The Z coordinate of the center of the spike.static EndSpikeDecodes a Minecraft End spike.booleanguarded()Whether an iron bar cage is generated around the crystal on top of the spike.intheight()The height of the spike.static EndSpikeof(int centerX, int centerZ, int radius, int height, boolean guarded) Creates a new end spike.intradius()The radius of the spike.default EndSpike.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
centerX
The X coordinate of the center of the spike.- Returns:
- the center X coordinate
- Since:
- 3.0.0
-
centerZ
The Z coordinate of the center of the spike.- Returns:
- the center Z coordinate
- Since:
- 3.0.0
-
radius
-
height
-
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
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 spikecenterZ- the Z coordinate of the center of the spikeradius- the radius of the spikeheight- the height of the spikeguarded- whether an iron bar cage is generated around the crystal- Returns:
- a new end spike
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-
decode
-