Keep get prefix when a parameter is required

This commit is contained in:
TheMode 2021-06-22 18:46:16 +02:00
parent 58ec228f70
commit d365373775

View File

@ -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)