|
1 | 1 | diff --git a/MCStructs-converter/build.gradle b/MCStructs-converter/build.gradle |
2 | | -index ac4bcf0..43687f7 100644 |
| 2 | +index f1882a3..8d64646 100644 |
3 | 3 | --- a/MCStructs-converter/build.gradle |
4 | 4 | +++ b/MCStructs-converter/build.gradle |
5 | 5 | @@ -4,4 +4,5 @@ dependencies { |
@@ -387,6 +387,83 @@ index 8cddfda..b023f33 100644 |
387 | 387 | @Override |
388 | 388 | public String toString() { |
389 | 389 | return this.clazz.getSimpleName() + "{" + String.join(", ", this.fields) + "}"; |
| 390 | +diff --git a/MCStructs-itemcomponents/src/main/java/net/lenni0451/mcstructs/itemcomponents/impl/v1_20_5/ItemComponents_v1_20_5.java b/MCStructs-itemcomponents/src/main/java/net/lenni0451/mcstructs/itemcomponents/impl/v1_20_5/ItemComponents_v1_20_5.java |
| 391 | +index 8524a83..9f9472c 100644 |
| 392 | +--- a/MCStructs-itemcomponents/src/main/java/net/lenni0451/mcstructs/itemcomponents/impl/v1_20_5/ItemComponents_v1_20_5.java |
| 393 | ++++ b/MCStructs-itemcomponents/src/main/java/net/lenni0451/mcstructs/itemcomponents/impl/v1_20_5/ItemComponents_v1_20_5.java |
| 394 | +@@ -229,7 +229,7 @@ public class ItemComponents_v1_20_5 extends ItemComponentRegistry { |
| 395 | + GameProfile.Property::new |
| 396 | + ).listOf().map(properties -> { |
| 397 | + List<GameProfile.Property> list = new ArrayList<>(); |
| 398 | +- for (Map.Entry<String, List<GameProfile.Property>> entry : properties.entrySet()) list.putAll(entry.getValue()); |
| 399 | ++ for (Map.Entry<String, List<GameProfile.Property>> entry : properties.entrySet()) list.addAll(entry.getValue()); |
| 400 | + return list; |
| 401 | + }, list -> { |
| 402 | + Map<String, List<GameProfile.Property>> properties = new HashMap<>(); |
| 403 | +diff --git a/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_20_5.java b/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_20_5.java |
| 404 | +index 6386dde..a5b4ad1 100644 |
| 405 | +--- a/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_20_5.java |
| 406 | ++++ b/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_20_5.java |
| 407 | +@@ -35,7 +35,7 @@ public class Test_v1_20_5 extends ItemComponentTest<ItemComponents_v1_20_5> { |
| 408 | + |
| 409 | + @Override |
| 410 | + public void register(ItemComponents_v1_20_5 registry) { |
| 411 | +- register(registry.CUSTOM_DATA, new CompoundTag().putString("test", "test2")); |
| 412 | ++ register(registry.CUSTOM_DATA, new CompoundTag()); |
| 413 | + register(registry.MAX_STACK_SIZE, 12); |
| 414 | + register(registry.MAX_DAMAGE, 123); |
| 415 | + register(registry.DAMAGE, 654); |
| 416 | +@@ -55,7 +55,7 @@ public class Test_v1_20_5 extends ItemComponentTest<ItemComponents_v1_20_5> { |
| 417 | + valueMatchers.put("test", new BlockPredicate.ValueMatcher("val")); |
| 418 | + valueMatchers.put("test2", new BlockPredicate.ValueMatcher("min val", null)); |
| 419 | + return valueMatchers; |
| 420 | +- }), new CompoundTag().putInt("abc", 123))), false)); |
| 421 | ++ }), new CompoundTag())), false)); |
| 422 | + copy(registry.CAN_BREAK, registry.CAN_PLACE_ON); |
| 423 | + register(registry.ATTRIBUTE_MODIFIERS, new AttributeModifiers(Collections.singletonList(new AttributeModifier(registry.getRegistries().attributeModifier.getEntry(Identifier.of("attr")), new AttributeModifier.EntityAttribute(UUID.randomUUID(), "name", 12.34, AttributeModifier.EntityAttribute.Operation.ADD_MULTIPLIED_TOTAL))), false)); |
| 424 | + register(registry.CUSTOM_MODEL_DATA, 1234); |
| 425 | +@@ -91,9 +91,9 @@ public class Test_v1_20_5 extends ItemComponentTest<ItemComponents_v1_20_5> { |
| 426 | + states.put(registry.getRegistries().block.getEntry(Identifier.of("test2")), "state2"); |
| 427 | + return states; |
| 428 | + })); |
| 429 | +- register(registry.ENTITY_DATA, new CompoundTag().putString("id", "pig")); |
| 430 | +- register(registry.BUCKET_ENTITY_DATA, new CompoundTag().addLongArray("test2", 4, 5, 6)); |
| 431 | +- register(registry.BLOCK_ENTITY_DATA, new CompoundTag().putString("id", "pig")); |
| 432 | ++ register(registry.ENTITY_DATA, compoundTagWithId()); |
| 433 | ++ register(registry.BUCKET_ENTITY_DATA, new CompoundTag()); |
| 434 | ++ register(registry.BLOCK_ENTITY_DATA, compoundTagWithId()); |
| 435 | + register(registry.INSTRUMENT, new EitherEntry<>(new Instrument(new EitherEntry<>(new SoundEvent(Identifier.of("test"), 0.5F)), 12, 13))); |
| 436 | + register(registry.OMINOUS_BOTTLE_AMPLIFIER, 2); |
| 437 | + register(registry.RECIPES, Arrays.asList(Identifier.of("test"), Identifier.of("test2"))); |
| 438 | +@@ -116,9 +116,14 @@ public class Test_v1_20_5 extends ItemComponentTest<ItemComponents_v1_20_5> { |
| 439 | + blockState.put("test2", "state2"); |
| 440 | + return blockState; |
| 441 | + })); |
| 442 | +- register(registry.BEES, Collections.singletonList(new BeeData(new CompoundTag().putBoolean("test", true), 1, 2))); |
| 443 | ++ register(registry.BEES, Collections.singletonList(new BeeData(new CompoundTag(), 1, 2))); |
| 444 | + register(registry.LOCK, "test"); |
| 445 | + register(registry.CONTAINER_LOOT, new ContainerLoot(Identifier.of("test"), 123)); |
| 446 | + } |
| 447 | + |
| 448 | ++ private CompoundTag compoundTagWithId() { |
| 449 | ++ final CompoundTag tag = new CompoundTag(); |
| 450 | ++ tag.putString("id", "pig"); |
| 451 | ++ return tag; |
| 452 | ++ } |
| 453 | + } |
| 454 | +diff --git a/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_21_5.java b/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_21_5.java |
| 455 | +index 7681e9b..e95621f 100644 |
| 456 | +--- a/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_21_5.java |
| 457 | ++++ b/MCStructs-itemcomponents/src/test/java/net/lenni0451/mcstructs/itemcomponents/versions/Test_v1_21_5.java |
| 458 | +@@ -77,7 +77,7 @@ public class Test_v1_21_5 extends ItemComponentTest<ItemComponents_v1_21_5> { |
| 459 | + valueMatchers.put("test", new Types_v1_20_5.BlockPredicate.ValueMatcher("val")); |
| 460 | + valueMatchers.put("test2", new Types_v1_20_5.BlockPredicate.ValueMatcher("min val", null)); |
| 461 | + return valueMatchers; |
| 462 | +- }), new CompoundTag().putInt("abc", 123)))); |
| 463 | ++ }), new CompoundTag()))); |
| 464 | + copy(registry.CAN_BREAK, registry.CAN_PLACE_ON); |
| 465 | + register(registry.ENCHANTMENTS, init(() -> { |
| 466 | + Map<RegistryEntry, Integer> enchantments = new HashMap<>(); |
390 | 467 | diff --git a/MCStructs-snbt/src/main/java/net/lenni0451/mcstructs/snbt/impl/v1_12/SNbtDeserializer_v1_12.java b/MCStructs-snbt/src/main/java/net/lenni0451/mcstructs/snbt/impl/v1_12/SNbtDeserializer_v1_12.java |
391 | 468 | index fdbd54d..277b837 100644 |
392 | 469 | --- a/MCStructs-snbt/src/main/java/net/lenni0451/mcstructs/snbt/impl/v1_12/SNbtDeserializer_v1_12.java |
@@ -813,7 +890,7 @@ index bf49579..4ef8e2b 100644 |
813 | 890 | HoverEventAction.SHOW_ITEM.isUserDefinable() |
814 | 891 | ); |
815 | 892 | diff --git a/build.gradle b/build.gradle |
816 | | -index b7168e6..497bc8a 100644 |
| 893 | +index b6f8b95..5da9a85 100644 |
817 | 894 | --- a/build.gradle |
818 | 895 | +++ b/build.gradle |
819 | 896 | @@ -6,7 +6,7 @@ subprojects { |
@@ -876,18 +953,18 @@ index b7168e6..497bc8a 100644 |
876 | 953 | signing { |
877 | 954 | setRequired false |
878 | 955 | diff --git a/settings.gradle b/settings.gradle |
879 | | -index 4e21e69..9cc65c9 100644 |
| 956 | +index 4e21e69..90e361a 100644 |
880 | 957 | --- a/settings.gradle |
881 | 958 | +++ b/settings.gradle |
882 | | -@@ -11,11 +11,7 @@ plugins { |
| 959 | +@@ -11,11 +11,8 @@ plugins { |
883 | 960 |
|
884 | 961 | rootProject.name = "MCStructs" |
885 | 962 |
|
886 | 963 | -include(":MCStructs-all") |
887 | 964 | include(":MCStructs-converter") |
888 | 965 | include(":MCStructs-core") |
889 | 966 | -include(":MCStructs-data") |
890 | | --include(":MCStructs-itemcomponents") |
| 967 | + include(":MCStructs-itemcomponents") |
891 | 968 | -include(":MCStructs-nbt") |
892 | 969 | include(":MCStructs-snbt") |
893 | 970 | include(":MCStructs-text") |
0 commit comments