Fix more warnings and do some small optimizations (#1356)
* Fix more warnings and do some small optimizations * Fix more warnings in ValueConversions * Clean up some decompiler names and fix an unnecessary transformation around commands * Use (way) more compact data structure for slot map * Minor tweaks Such as map directly in the collector * I hate vanilla javac Revert map changes in latest commit
This commit is contained in:
1 parent
e4dc080657
commit
f18cfb09d2
18 files changed
+116
-139
No files matched your search
@@ -134,11 +134,11 @@ public class WorldAccess {
|
||||
DIRECTION_MAP.put("x", Direction.EAST);
|
||||
|
||||
}
|
||||
private final static Map<String, TicketType<?>> ticketTypes = new HashMap<String, TicketType<?>>(){{
|
||||
put("portal", TicketType.PORTAL);
|
||||
put("teleport", TicketType.POST_TELEPORT);
|
||||
put("unknown", TicketType.UNKNOWN); // unknown
|
||||
}};
|
||||
private static final Map<String, TicketType<?>> ticketTypes = Map.of(
|
||||
"portal", TicketType.PORTAL,
|
||||
"teleport", TicketType.POST_TELEPORT,
|
||||
"unknown", TicketType.UNKNOWN
|
||||
);
|
||||
// dummy entity for dummy requirements in the loot tables (see snowball)
|
||||
private static FallingBlockEntity DUMMY_ENTITY = null;
|
||||
private static Value booleanStateTest(
|
||||
|
||||
Reference in new issue
Block a user