|
5 | 5 | import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment;
|
6 | 6 | import net.bettercombat.logic.TargetHelper;
|
7 | 7 |
|
| 8 | +import java.util.HashMap; |
8 | 9 | import java.util.Map;
|
9 | 10 |
|
10 | 11 | @Config(name = "server")
|
@@ -88,12 +89,13 @@ Entities struck (+1) in a swing more than this, won't get weakened any further.
|
88 | 89 | - `player_relation_to_other`
|
89 | 90 | (The first relation to be found for the target will be applied.)
|
90 | 91 | """)
|
91 |
| - public Map<String, TargetHelper.Relation> player_relations = Map.of( |
92 |
| - "minecraft:player", TargetHelper.Relation.NEUTRAL, |
93 |
| - "minecraft:villager", TargetHelper.Relation.NEUTRAL, |
94 |
| - "minecraft:iron_golem", TargetHelper.Relation.NEUTRAL, |
95 |
| - "guardvillagers:guard", TargetHelper.Relation.NEUTRAL |
96 |
| - ); |
| 92 | + public HashMap<String, TargetHelper.Relation> player_relations = new HashMap<>() {{ |
| 93 | + put("minecraft:player", TargetHelper.Relation.NEUTRAL); |
| 94 | + put("minecraft:villager", TargetHelper.Relation.NEUTRAL); |
| 95 | + put("minecraft:iron_golem", TargetHelper.Relation.NEUTRAL); |
| 96 | + put("guardvillagers:guard", TargetHelper.Relation.NEUTRAL); |
| 97 | + }}; |
| 98 | + |
97 | 99 | @Comment("Relation to unspecified entities those are instance of PassiveEntity(Yarn)")
|
98 | 100 | public TargetHelper.Relation player_relation_to_passives = TargetHelper.Relation.HOSTILE;
|
99 | 101 | @Comment("Relation to unspecified entities those are instance of HostileEntity(Yarn)")
|
|
0 commit comments