-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
10 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
12 changes: 8 additions & 4 deletions
12
versions/25w04a/patches/net/minecraft/advancements/critereon/MinMaxBounds.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,20 +1,24 @@ | ||
--- a/net/minecraft/advancements/critereon/MinMaxBounds.java | ||
+++ b/net/minecraft/advancements/critereon/MinMaxBounds.java | ||
@@ -119,7 +_,7 @@ | ||
@@ -148,8 +_,8 @@ | ||
public record Doubles(@Override Optional<Double> min, @Override Optional<Double> max, Optional<Double> minSq, Optional<Double> maxSq) | ||
implements MinMaxBounds<Double> { | ||
public static final MinMaxBounds.Doubles ANY = new MinMaxBounds.Doubles(Optional.empty(), Optional.empty()); | ||
- public static final Codec<MinMaxBounds.Doubles> CODEC = MinMaxBounds.createCodec(Codec.DOUBLE, MinMaxBounds.Doubles::new); | ||
- public static final StreamCodec<ByteBuf, MinMaxBounds.Doubles> STREAM_CODEC = MinMaxBounds.createStreamCodec( | ||
+ public static final Codec<MinMaxBounds.Doubles> CODEC = MinMaxBounds.<Double, MinMaxBounds.Doubles>createCodec(Codec.DOUBLE, MinMaxBounds.Doubles::new); | ||
+ public static final StreamCodec<ByteBuf, MinMaxBounds.Doubles> STREAM_CODEC = MinMaxBounds.<ByteBuf, Double, MinMaxBounds.Doubles>createStreamCodec( | ||
ByteBufCodecs.DOUBLE, MinMaxBounds.Doubles::new | ||
); | ||
|
||
private Doubles(Optional<Double> min, Optional<Double> max) { | ||
this(min, max, squareOpt(min), squareOpt(max)); | ||
@@ -175,7 +_,7 @@ | ||
@@ -207,8 +_,8 @@ | ||
public record Ints(@Override Optional<Integer> min, @Override Optional<Integer> max, Optional<Long> minSq, Optional<Long> maxSq) | ||
implements MinMaxBounds<Integer> { | ||
public static final MinMaxBounds.Ints ANY = new MinMaxBounds.Ints(Optional.empty(), Optional.empty()); | ||
- public static final Codec<MinMaxBounds.Ints> CODEC = MinMaxBounds.createCodec(Codec.INT, MinMaxBounds.Ints::new); | ||
- public static final StreamCodec<ByteBuf, MinMaxBounds.Ints> STREAM_CODEC = MinMaxBounds.createStreamCodec(ByteBufCodecs.INT, MinMaxBounds.Ints::new); | ||
+ public static final Codec<MinMaxBounds.Ints> CODEC = MinMaxBounds.<Integer, MinMaxBounds.Ints>createCodec(Codec.INT, MinMaxBounds.Ints::new); | ||
+ public static final StreamCodec<ByteBuf, MinMaxBounds.Ints> STREAM_CODEC = MinMaxBounds.<ByteBuf, Integer, MinMaxBounds.Ints>createStreamCodec(ByteBufCodecs.INT, MinMaxBounds.Ints::new); | ||
|
||
private Ints(Optional<Integer> min, Optional<Integer> max) { | ||
this(min, max, min.map(integer -> integer.longValue() * integer.longValue()), squareOpt(max)); |
2 changes: 1 addition & 1 deletion
2
versions/25w04a/patches/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
17 changes: 0 additions & 17 deletions
17
versions/25w04a/patches/net/minecraft/nbt/TagParser.java.patch
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
versions/25w04a/patches/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
16 changes: 16 additions & 0 deletions
16
versions/25w04a/patches/net/minecraft/util/PlaceholderLookupProvider.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,16 @@ | ||
--- a/net/minecraft/util/PlaceholderLookupProvider.java | ||
+++ b/net/minecraft/util/PlaceholderLookupProvider.java | ||
@@ -101,11 +_,11 @@ | ||
} | ||
|
||
public <T> HolderGetter<T> castAsLookup() { | ||
- return this; | ||
+ return (HolderGetter<T>) this; | ||
} | ||
|
||
public <T> HolderOwner<T> castAsOwner() { | ||
- return this; | ||
+ return (HolderOwner<T>) this; | ||
} | ||
} | ||
} |
16 changes: 8 additions & 8 deletions
16
versions/25w04a/patches/net/minecraft/util/datafix/DataFixers.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,20 +1,20 @@ | ||
--- a/net/minecraft/util/datafix/DataFixers.java | ||
+++ b/net/minecraft/util/datafix/DataFixers.java | ||
@@ -1150,7 +_,7 @@ | ||
Schema schema161 = builder.addSchema(3086, SAME_NAMESPACED); | ||
@@ -1158,7 +_,7 @@ | ||
Schema schema162 = builder.addSchema(3086, SAME_NAMESPACED); | ||
builder.addFixer( | ||
new EntityVariantFix( | ||
- schema161, "Change cat variant type", References.ENTITY, "minecraft:cat", "CatType", Util.make(new Int2ObjectOpenHashMap(), map5 -> { | ||
+ schema161, "Change cat variant type", References.ENTITY, "minecraft:cat", "CatType", Util.make(new Int2ObjectOpenHashMap<String>(), map5 -> { | ||
- schema162, "Change cat variant type", References.ENTITY, "minecraft:cat", "CatType", Util.make(new Int2ObjectOpenHashMap(), map5 -> { | ||
+ schema162, "Change cat variant type", References.ENTITY, "minecraft:cat", "CatType", Util.make(new Int2ObjectOpenHashMap<String>(), map5 -> { | ||
map5.defaultReturnValue("minecraft:tabby"); | ||
map5.put(0, "minecraft:tabby"); | ||
map5.put(1, "minecraft:black"); | ||
@@ -1187,7 +_,7 @@ | ||
Schema schema162 = builder.addSchema(3087, SAME_NAMESPACED); | ||
@@ -1195,7 +_,7 @@ | ||
Schema schema163 = builder.addSchema(3087, SAME_NAMESPACED); | ||
builder.addFixer( | ||
new EntityVariantFix( | ||
- schema162, "Change frog variant type", References.ENTITY, "minecraft:frog", "Variant", Util.make(new Int2ObjectOpenHashMap(), map5 -> { | ||
+ schema162, "Change frog variant type", References.ENTITY, "minecraft:frog", "Variant", Util.make(new Int2ObjectOpenHashMap<String>(), map5 -> { | ||
- schema163, "Change frog variant type", References.ENTITY, "minecraft:frog", "Variant", Util.make(new Int2ObjectOpenHashMap(), map5 -> { | ||
+ schema163, "Change frog variant type", References.ENTITY, "minecraft:frog", "Variant", Util.make(new Int2ObjectOpenHashMap<String>(), map5 -> { | ||
map5.put(0, "minecraft:temperate"); | ||
map5.put(1, "minecraft:warm"); | ||
map5.put(2, "minecraft:cold"); |
11 changes: 11 additions & 0 deletions
11
versions/25w04a/patches/net/minecraft/world/entity/variant/PriorityProvider.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/entity/variant/PriorityProvider.java | ||
+++ b/net/minecraft/world/entity/variant/PriorityProvider.java | ||
@@ -99,7 +_,7 @@ | ||
} | ||
|
||
public record UnpackedEntry<C, T>(T entry, int priority, PriorityProvider.SelectorCondition<C> condition) { | ||
- public static final Comparator<PriorityProvider.UnpackedEntry<?, ?>> HIGHEST_PRIORITY_FIRST = Comparator.comparingInt( | ||
+ public static final Comparator<PriorityProvider.UnpackedEntry<?, ?>> HIGHEST_PRIORITY_FIRST = Comparator.<PriorityProvider.UnpackedEntry<?, ?>>comparingInt( | ||
PriorityProvider.UnpackedEntry::priority | ||
) | ||
.reversed(); |
2 changes: 1 addition & 1 deletion
2
versions/25w04a/patches/net/minecraft/world/item/AdventureModePredicate.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
versions/25w04a/patches/net/minecraft/world/level/block/Block.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
.../25w04a/patches/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