Revert "Like this @mattbdev ?"

This reverts commit bddf92cd9b.
Dieser Commit ist enthalten in:
Jesse Boyd 2019-10-31 00:41:36 +01:00
Ursprung ef47ea74df
Commit e1b9b9e3e8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
2 geänderte Dateien mit 677 neuen und 684 gelöschten Zeilen

Datei anzeigen

@ -47,7 +47,6 @@ import java.util.stream.IntStream;
import javax.annotation.Nullable; import javax.annotation.Nullable;
public class BlockType implements FawePattern, Keyed { public class BlockType implements FawePattern, Keyed {
protected static final BlockType DUMMY = new BlockType();
public static final NamespacedRegistry<BlockType> REGISTRY = new NamespacedRegistry<>("block type"); public static final NamespacedRegistry<BlockType> REGISTRY = new NamespacedRegistry<>("block type");
@ -57,12 +56,6 @@ public class BlockType implements FawePattern, Keyed {
private boolean initItemType; private boolean initItemType;
private ItemType itemType; private ItemType itemType;
// Dummy
private BlockType() {
this.id = null;
this.settings = null;
}
protected BlockType(String id, int internalId, List<BlockState> states) { protected BlockType(String id, int internalId, List<BlockState> states) {
int i = id.indexOf("["); int i = id.indexOf("[");
this.id = i == -1 ? id : id.substring(0, i); this.id = i == -1 ? id : id.substring(0, i);