it builds?
This commit is contained in:
parent
30c3875848
commit
a0d5f46737
1 changed files with 28 additions and 29 deletions
|
@ -133,33 +133,32 @@ public class TemplateUtils {
|
|||
NbtCompound newTag = new NbtCompound();
|
||||
EntranceRiftBlockEntity rift = new EntranceRiftBlockEntity(pos, Schematic.getBlockSample(schematic).getBlockState(pos));
|
||||
switch (blockEntityTag.getString("placeholder")) {
|
||||
case "deeper_depth_door":
|
||||
case "deeper_depth_door" -> {
|
||||
rift.setProperties(DefaultDungeonDestinations.POCKET_LINK_PROPERTIES);
|
||||
rift.setDestination(DefaultDungeonDestinations.getDeeperDungeonDestination());
|
||||
newTag = rift.writeNbt(newTag);
|
||||
break;
|
||||
case "less_deep_depth_door":
|
||||
rift.writeNbt(newTag);
|
||||
}
|
||||
case "less_deep_depth_door" -> {
|
||||
rift.setProperties(DefaultDungeonDestinations.POCKET_LINK_PROPERTIES);
|
||||
rift.setDestination(DefaultDungeonDestinations.getShallowerDungeonDestination());
|
||||
newTag = rift.writeNbt(newTag);
|
||||
break;
|
||||
case "overworld_door":
|
||||
rift.writeNbt(newTag);
|
||||
}
|
||||
case "overworld_door" -> {
|
||||
rift.setProperties(DefaultDungeonDestinations.POCKET_LINK_PROPERTIES);
|
||||
rift.setDestination(DefaultDungeonDestinations.getOverworldDestination());
|
||||
newTag = rift.writeNbt(newTag);
|
||||
break;
|
||||
case "entrance_door":
|
||||
rift.writeNbt(newTag);
|
||||
}
|
||||
case "entrance_door" -> {
|
||||
rift.setProperties(DefaultDungeonDestinations.POCKET_LINK_PROPERTIES);
|
||||
rift.setDestination(DefaultDungeonDestinations.getTwoWayPocketEntrance());
|
||||
newTag = rift.writeNbt(newTag);
|
||||
break;
|
||||
case "gateway_portal":
|
||||
rift.writeNbt(newTag);
|
||||
}
|
||||
case "gateway_portal" -> {
|
||||
rift.setProperties(DefaultDungeonDestinations.OVERWORLD_LINK_PROPERTIES);
|
||||
rift.setDestination(DefaultDungeonDestinations.getGateway());
|
||||
newTag = rift.writeNbt(newTag);
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException("Unknown block entity placeholder: " + blockEntityTag.getString("placeholder"));
|
||||
rift.writeNbt(newTag);
|
||||
}
|
||||
default -> throw new RuntimeException("Unknown block entity placeholder: " + blockEntityTag.getString("placeholder"));
|
||||
}
|
||||
rift.setWorld(world.toServerWorld());
|
||||
blockEntities.add(newTag);
|
||||
|
|
Loading…
Reference in a new issue