-
I have a similar situation, where I want to allow the end user to specify a list of entities, in the config I have global values specified at the beginning, and optionally values that are per-mob. My solution is this following: mob-modifier:
percentage-drop: 50.0
range-drop: 10-30
mob-list:
- PIG
- ZOMBIE:
percentage-drop: 50.0
range-drop: 10-30 Except I have the following problem. When I want to iterate for all values, I usually use for (final Object entityTypeKey : mobListNode.childrenMap().keySet()) {
final EntityType entityType = EntityType.valueOf(mobListNode.node(entityTypeKey));
} problem that in this case there are both types, and I don't know how to get the values, any idea how to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
zml2008
Jun 23, 2022
Replies: 1 comment 1 reply
-
there aren't both types, that's a list of maps |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
steveb05
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there aren't both types, that's a list of maps