Commits

Julian v.d Berkmortel authored and md_5 committed 6d0965a550a
SPIGOT-6388: Add API to get and set the state of the "Shulker" entity
No tags

src/main/java/org/bukkit/entity/Shulker.java

Modified
1 1 package org.bukkit.entity;
2 2
3 3 import org.bukkit.material.Colorable;
4 4
5 -public interface Shulker extends Golem, Colorable {}
5 +public interface Shulker extends Golem, Colorable {
6 +
7 + /**
8 + * Gets the peek state of the shulker between 0.0 and 1.0.
9 + *
10 + * @return the peek state of the shulker between 0.0 and 1.0
11 + */
12 + public float getPeek();
13 +
14 + /**
15 + * Sets the peek state of the shulker, should be in between 0.0 and 1.0.
16 + *
17 + * @param value peek state of the shulker, should be in between 0.0 and 1.0
18 + * @throws IllegalArgumentException thrown if the value exceeds the valid
19 + * range in between of 0.0 and 1.0
20 + */
21 + public void setPeek(float value);
22 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut