if (nbt.hasKey("sound"))
setSound(DoorRegistry.getSound(nbt.getString("sound")));
if (nbt.hasKey("openingTime"))
setOpeningTime(nbt.getInteger("openingTime"));
if (nbt.hasKey("redstone"))
<BUG>setRequireRedstone(nbt.getBoolean("redstone"));
if (nbt.hasKey("doubleDoor"))</BUG>
setDoubleDoor(nbt.getBoolean("doubleDoor"));
if (nbt.hasKey("autoCloseTime"))
setAutoCloseTime(nbt.getInteger("autoCloseTime"));

if (nbt.hasKey("sound"))
setSound(DoorRegistry.getSound(nbt.getString("sound")));
if (nbt.hasKey("openingTime"))
setOpeningTime(nbt.getInteger("openingTime"));
if (nbt.hasKey("redstone"))
setRedstoneBehavior(nbt.getBoolean("redstone") ? RedstoneBehavior.REDSTONE_ONLY : RedstoneBehavior.STANDARD);
if (nbt.hasKey("redstoneBehavior"))
setRedstoneBehavior(RedstoneBehavior.values()[nbt.getInteger("redstoneBehavior")]);
if (nbt.hasKey("doubleDoor"))
setDoubleDoor(nbt.getBoolean("doubleDoor"));
if (nbt.hasKey("autoCloseTime"))
setAutoCloseTime(nbt.getInteger("autoCloseTime"));
