From f70046bc73d0c430f8f938c630ef74cb8b5bd3b0 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Sun, 10 Jan 2021 04:56:52 -0500 Subject: [PATCH] Support connector targets --- .../com/volmit/iris/object/IrisJigsawPieceConnector.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/volmit/iris/object/IrisJigsawPieceConnector.java b/src/main/java/com/volmit/iris/object/IrisJigsawPieceConnector.java index 2d875a022..a3120bc20 100644 --- a/src/main/java/com/volmit/iris/object/IrisJigsawPieceConnector.java +++ b/src/main/java/com/volmit/iris/object/IrisJigsawPieceConnector.java @@ -18,9 +18,15 @@ public class IrisJigsawPieceConnector { @Required @DontObfuscate - @Desc("The name of this connector, such as entry, or table node. This is a name for organization, it has no effect on generation.") + @Desc("The name of this connector, such as entry, or table node. This is a name for organization. Other connectors can specifically use targetName to target a specific connector type. Multiple connectors can use the same name.") private String name = ""; + + @Required + @DontObfuscate + @Desc("Target a piece's connector with the specified name. For any piece's connector, define * or don't define it.") + private String targetName = "*"; + @DontObfuscate @Desc("Rotates the placed piece on this connector. If rotation is enabled, this connector will effectivley rotate, if this connector is facing the Z direction, then the connected piece would rotate in the X,Y direction in 90 degree segments.") private boolean rotateConnector = false;