mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +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();
|
||||
|
||||
@Contract(pure = true)
|
||||
default @NotNull String property(@NotNull String property) {
|
||||
default @NotNull String getProperty(@NotNull String property) {
|
||||
return properties().get(property);
|
||||
}
|
||||
|
||||
@Contract(pure = true)
|
||||
default <T> @NotNull String property(@NotNull BlockProperty<T> property) {
|
||||
return property(property.getName());
|
||||
default <T> @NotNull String getProperty(@NotNull BlockProperty<T> property) {
|
||||
return getProperty(property.getName());
|
||||
}
|
||||
|
||||
@Contract(pure = true)
|
||||
|
Loading…
Reference in New Issue
Block a user