mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +01:00
Keep get
prefix when a parameter is required
This commit is contained in:
parent
58ec228f70
commit
d365373775
@ -63,13 +63,13 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants {
|
|||||||
@NotNull Map<String, String> properties();
|
@NotNull Map<String, String> properties();
|
||||||
|
|
||||||
@Contract(pure = true)
|
@Contract(pure = true)
|
||||||
default @NotNull String property(@NotNull String property) {
|
default @NotNull String getProperty(@NotNull String property) {
|
||||||
return properties().get(property);
|
return properties().get(property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Contract(pure = true)
|
@Contract(pure = true)
|
||||||
default <T> @NotNull String property(@NotNull BlockProperty<T> property) {
|
default <T> @NotNull String getProperty(@NotNull BlockProperty<T> property) {
|
||||||
return property(property.getName());
|
return getProperty(property.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Contract(pure = true)
|
@Contract(pure = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user