BlockState(BlockType blockType) { this.blockType = blockType; this.values = new LinkedHashMap<>(); this.emptyBaseBlock = new BaseBlock(this); }
@Override public BaseBlock toBaseBlock(CompoundTag compoundTag) { if (compoundTag == null) { return toBaseBlock(); } return new BaseBlock(this, compoundTag); }
@Override public BaseBlock toBaseBlock(CompoundTag compoundTag) { if (compoundTag == null) { return this.blockState.toBaseBlock(); } else if (compoundTag == this.nbtData) { return this; } else { return new BaseBlock(this.blockState, compoundTag); } }