From e7f0ba1982c762f3e1498f14d8d7c30f51087ce5 Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Fri, 4 Sep 2020 03:48:31 -0400 Subject: [PATCH] Regions support for objects --- src/main/java/com/volmit/iris/object/IrisRegion.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/volmit/iris/object/IrisRegion.java b/src/main/java/com/volmit/iris/object/IrisRegion.java index 9578e6386..3cece4b61 100644 --- a/src/main/java/com/volmit/iris/object/IrisRegion.java +++ b/src/main/java/com/volmit/iris/object/IrisRegion.java @@ -35,12 +35,12 @@ public class IrisRegion extends IrisRegistrant implements IRare @DontObfuscate @Desc("Effects are ambient effects such as potion effects, random sounds, or even particles around each player. All of these effects are played via packets so two players won't see/hear each others effects.\nDue to performance reasons, effects will play arround the player even if where the effect was played is no longer in the biome the player is in.") private KList effects = new KList<>(); - + @DontObfuscate @Desc("Entity spawns to override or add to this region") @ArrayType(min = 1, type = IrisEntitySpawn.class) private KList entitySpawns = new KList<>(); - + @MinNumber(1) @MaxNumber(256) @DontObfuscate @@ -63,6 +63,11 @@ public class IrisRegion extends IrisRegistrant implements IRare @Desc("The shore ration (How much percent of land should be a shore)") private double shoreRatio = 0.13; + @ArrayType(min = 1, type = IrisObjectPlacement.class) + @DontObfuscate + @Desc("Objects define what schematics (iob files) iris will place in this region") + private KList objects = new KList(); + @MinNumber(0) @DontObfuscate @Desc("The min shore height")