Skip to content

Commit b39264a

Browse files
committed
add Contract
1 parent 2b743f4 commit b39264a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/minevalley/core/api/utils/Hologram.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import minevalley.core.api.modifiers.LocationModifier;
44
import minevalley.core.api.modifiers.VisibilityModifier;
5+
import org.jetbrains.annotations.Contract;
56

67
import javax.annotation.Nonnegative;
78
import javax.annotation.Nonnull;
@@ -15,6 +16,7 @@ public interface Hologram extends LocationModifier, VisibilityModifier {
1516
* @return the lines of the hologram.
1617
*/
1718
@Nonnull
19+
@Contract(pure = true)
1820
String[] getLines();
1921

2022
/**
@@ -24,6 +26,7 @@ public interface Hologram extends LocationModifier, VisibilityModifier {
2426
* @return the line at the specified index.
2527
* @throws IndexOutOfBoundsException if the line is out of bounds.
2628
*/
29+
@Contract(pure = true)
2730
default String getLine(@Nonnegative int line) throws IndexOutOfBoundsException {
2831
return getLines()[line];
2932
}

0 commit comments

Comments
 (0)