Temporarily fix block placement

This commit is contained in:
TheMode 2021-06-24 20:53:33 +02:00
parent b49ccadadc
commit f2300714eb
1 changed files with 7 additions and 6 deletions

View File

@ -17,6 +17,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap;
import java.util.Objects;
/**
* AUTOGENERATED
@ -85,17 +86,17 @@ public final class Registries {
/**
* Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
*/
@NotNull
public static Block getBlock(String id) {
return getBlock(NamespaceID.from(id));
@Deprecated
public static @NotNull Block getBlock(String id) {
return Objects.requireNonNullElse(Block.fromNamespaceId(id), Block.AIR);
}
/**
* Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
*/
@NotNull
public static Block getBlock(NamespaceID id) {
return blocks.getOrDefault(id, Block.AIR);
@Deprecated
public static @NotNull Block getBlock(NamespaceID id) {
return Objects.requireNonNullElse(Block.fromNamespaceId(id), Block.AIR);
}
/**