-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
78 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../client/net/minecraft/client/renderer/item/properties/select/ComponentContents.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/client/renderer/item/properties/select/ComponentContents.java | ||
+++ b/net/minecraft/client/renderer/item/properties/select/ComponentContents.java | ||
@@ -20,7 +20,7 @@ | ||
Codec<? extends DataComponentType<?>> codec = BuiltInRegistries.DATA_COMPONENT_TYPE | ||
.byNameCodec() | ||
.validate(p_398049_ -> p_398049_.isTransient() ? DataResult.error(() -> "Component can't be serialized") : DataResult.success(p_398049_)); | ||
- MapCodec<SelectItemModel.UnbakedSwitch<ComponentContents<T>, T>> mapcodec = codec.dispatchMap( | ||
+ MapCodec<SelectItemModel.UnbakedSwitch<ComponentContents<T>, T>> mapcodec = ((Codec<DataComponentType<T>>)codec).dispatchMap( | ||
"component", | ||
p_397332_ -> p_397332_.property().componentType, | ||
p_397367_ -> SelectItemModelProperty.Type.createCasesFieldCodec(p_397367_.codecOrThrow()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../joined/net/minecraft/client/renderer/item/properties/select/ComponentContents.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/client/renderer/item/properties/select/ComponentContents.java | ||
+++ b/net/minecraft/client/renderer/item/properties/select/ComponentContents.java | ||
@@ -23,7 +23,7 @@ | ||
Codec<? extends DataComponentType<?>> codec = BuiltInRegistries.DATA_COMPONENT_TYPE | ||
.byNameCodec() | ||
.validate(p_398049_ -> p_398049_.isTransient() ? DataResult.error(() -> "Component can't be serialized") : DataResult.success(p_398049_)); | ||
- MapCodec<SelectItemModel.UnbakedSwitch<ComponentContents<T>, T>> mapcodec = codec.dispatchMap( | ||
+ MapCodec<SelectItemModel.UnbakedSwitch<ComponentContents<T>, T>> mapcodec = ((Codec<DataComponentType<T>>)codec).dispatchMap( | ||
"component", | ||
p_397332_ -> p_397332_.property().componentType, | ||
p_397367_ -> SelectItemModelProperty.Type.createCasesFieldCodec(p_397367_.codecOrThrow()) |
20 changes: 0 additions & 20 deletions
20
...25w03a/patches/shared/net/minecraft/advancements/critereon/EntitySubPredicates.java.patch
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...25w03a/patches/shared/net/minecraft/commands/synchronization/ArgumentTypeInfos.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
--- a/net/minecraft/commands/synchronization/ArgumentTypeInfos.java | ||
+++ b/net/minecraft/commands/synchronization/ArgumentTypeInfos.java | ||
@@ -119,10 +119,10 @@ | ||
@@ -117,11 +117,11 @@ | ||
register(p_235385_, "dimension", DimensionArgument.class, SingletonArgumentInfo.contextFree(DimensionArgument::dimension)); | ||
register(p_235385_, "gamemode", GameModeArgument.class, SingletonArgumentInfo.contextFree(GameModeArgument::gameMode)); | ||
register(p_235385_, "time", TimeArgument.class, new TimeArgument.Info()); | ||
- register(p_235385_, "resource_or_tag", fixClassType(ResourceOrTagArgument.class), new ResourceOrTagArgument.Info()); | ||
- register(p_235385_, "resource_or_tag_key", fixClassType(ResourceOrTagKeyArgument.class), new ResourceOrTagKeyArgument.Info()); | ||
- register(p_235385_, "resource", fixClassType(ResourceArgument.class), new ResourceArgument.Info()); | ||
- register(p_235385_, "resource_key", fixClassType(ResourceKeyArgument.class), new ResourceKeyArgument.Info()); | ||
- register(p_235385_, "resource_selector", fixClassType(ResourceSelectorArgument.class), new ResourceSelectorArgument.Info()); | ||
+ register(p_235385_, "resource_or_tag", fixClassType(ResourceOrTagArgument.class), new ResourceOrTagArgument.Info<Object>()); | ||
+ register(p_235385_, "resource_or_tag_key", fixClassType(ResourceOrTagKeyArgument.class), new ResourceOrTagKeyArgument.Info<Object>()); | ||
+ register(p_235385_, "resource", fixClassType(ResourceArgument.class), new ResourceArgument.Info<Object>()); | ||
+ register(p_235385_, "resource_key", fixClassType(ResourceKeyArgument.class), new ResourceKeyArgument.Info<Object>()); | ||
+ register(p_235385_, "resource_selector", fixClassType(ResourceSelectorArgument.class), new ResourceSelectorArgument.Info<Object>()); | ||
register(p_235385_, "template_mirror", TemplateMirrorArgument.class, SingletonArgumentInfo.contextFree(TemplateMirrorArgument::templateMirror)); | ||
register(p_235385_, "template_rotation", TemplateRotationArgument.class, SingletonArgumentInfo.contextFree(TemplateRotationArgument::templateRotation)); | ||
register(p_235385_, "heightmap", HeightmapTypeArgument.class, SingletonArgumentInfo.contextFree(HeightmapTypeArgument::heightmap)); |
2 changes: 1 addition & 1 deletion
2
...hot/1.21/25w03a/patches/shared/net/minecraft/core/registries/BuiltInRegistries.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ns/snapshot/1.21/25w03a/patches/shared/net/minecraft/network/codec/StreamCodec.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...snapshot/1.21/25w03a/patches/shared/net/minecraft/resources/RegistryDataLoader.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...s/shared/net/minecraft/util/datafix/fixes/EntitySpawnerItemVariantComponentFix.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/net/minecraft/util/datafix/fixes/EntitySpawnerItemVariantComponentFix.java | ||
+++ b/net/minecraft/util/datafix/fixes/EntitySpawnerItemVariantComponentFix.java | ||
@@ -32,9 +32,9 @@ | ||
String s = p_397051_.getOptional(opticfinder).map(Pair::getSecond).orElse(""); | ||
|
||
return switch (s) { | ||
- case "minecraft:salmon_bucket" -> p_397051_.updateTyped(opticfinder1, EntitySpawnerItemVariantComponentFix::fixSalmonBucket); | ||
- case "minecraft:axolotl_bucket" -> p_397051_.updateTyped(opticfinder1, EntitySpawnerItemVariantComponentFix::fixAxolotlBucket); | ||
- case "minecraft:tropical_fish_bucket" -> p_397051_.updateTyped(opticfinder1, EntitySpawnerItemVariantComponentFix::fixTropicalFishBucket); | ||
+ case "minecraft:salmon_bucket" -> p_397051_.updateTyped(opticfinder1, (Fixer)EntitySpawnerItemVariantComponentFix::fixSalmonBucket); | ||
+ case "minecraft:axolotl_bucket" -> p_397051_.updateTyped(opticfinder1, (Fixer)EntitySpawnerItemVariantComponentFix::fixAxolotlBucket); | ||
+ case "minecraft:tropical_fish_bucket" -> p_397051_.updateTyped(opticfinder1, (Fixer)EntitySpawnerItemVariantComponentFix::fixTropicalFishBucket); | ||
case "minecraft:painting" -> p_397051_.updateTyped( | ||
opticfinder1, p_398017_ -> Util.writeAndReadTypedOrThrow(p_398017_, p_398017_.getType(), EntitySpawnerItemVariantComponentFix::fixPainting) | ||
); |
2 changes: 1 addition & 1 deletion
2
versions/snapshot/1.21/25w03a/patches/shared/net/minecraft/world/entity/Entity.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...1/25w03a/patches/shared/net/minecraft/world/entity/monster/creaking/CreakingAi.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
versions/snapshot/1.21/25w03a/patches/shared/net/minecraft/world/level/GameRules.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../patches/shared/net/minecraft/world/level/block/entity/TestInstanceBlockEntity.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/world/level/block/entity/TestInstanceBlockEntity.java | ||
+++ b/net/minecraft/world/level/block/entity/TestInstanceBlockEntity.java | ||
@@ -100,7 +100,7 @@ | ||
} | ||
|
||
public Component getTestName() { | ||
- return this.test().map(p_397722_ -> Component.literal(p_397722_.location().toString())).orElse(INVALID_TEST_NAME); | ||
+ return this.test().map(p_397722_ -> (Component)Component.literal(p_397722_.location().toString())).orElse(INVALID_TEST_NAME); | ||
} | ||
|
||
private Optional<Holder.Reference<GameTestInstance>> getTestHolder() { |