-
-
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
1 parent
63d3351
commit 717227f
Showing
22 changed files
with
35 additions
and
88 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
18 changes: 9 additions & 9 deletions
18
versions/24w14a/patches/net/minecraft/advancements/critereon/PlayerPredicate.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,16 +1,16 @@ | ||
--- a/net/minecraft/advancements/critereon/PlayerPredicate.java | ||
+++ b/net/minecraft/advancements/critereon/PlayerPredicate.java | ||
@@ -239,11 +_,11 @@ | ||
private static <T> Codec<PlayerPredicate.StatMatcher<T>> createTypedCodec(StatType<T> type) { | ||
return RecordCodecBuilder.create( | ||
@@ -236,11 +_,11 @@ | ||
private static <T> MapCodec<PlayerPredicate.StatMatcher<T>> createTypedCodec(StatType<T> statType) { | ||
return RecordCodecBuilder.mapCodec( | ||
instance -> instance.group( | ||
- (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, Holder<T>>)type.getRegistry() | ||
+ type.getRegistry() | ||
- (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, Holder<T>>)statType.getRegistry() | ||
+ statType.getRegistry() | ||
.holderByNameCodec() | ||
.fieldOf("stat") | ||
.forGetter(PlayerPredicate.StatMatcher::value), | ||
- (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, MinMaxBounds.Ints>)ExtraCodecs.strictOptionalField( | ||
+ ExtraCodecs.strictOptionalField( | ||
MinMaxBounds.Ints.CODEC, "value", MinMaxBounds.Ints.ANY | ||
) | ||
- (App<Mu<? extends PlayerPredicate.StatMatcher<?>>, MinMaxBounds.Ints>)MinMaxBounds.Ints.CODEC | ||
+ MinMaxBounds.Ints.CODEC | ||
.optionalFieldOf("value", MinMaxBounds.Ints.ANY) | ||
.forGetter(PlayerPredicate.StatMatcher::range) | ||
) |
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
10 changes: 5 additions & 5 deletions
10
versions/24w14a/patches/net/minecraft/core/component/DataComponentPatch.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,11 +1,11 @@ | ||
--- a/net/minecraft/core/component/DataComponentPatch.java | ||
+++ b/net/minecraft/core/component/DataComponentPatch.java | ||
@@ -18,7 +_,7 @@ | ||
@@ -19,7 +_,7 @@ | ||
|
||
public final class DataComponentPatch { | ||
public static final DataComponentPatch EMPTY = new DataComponentPatch(Reference2ObjectMaps.emptyMap()); | ||
- public static final Codec<DataComponentPatch> CODEC = ExtraCodecs.unboundedDispatchMap( | ||
+ public static final Codec<DataComponentPatch> CODEC = ExtraCodecs.<PatchKey, Object>unboundedDispatchMap( | ||
DataComponentPatch.PatchKey.CODEC, DataComponentPatch.PatchKey::valueCodec | ||
) | ||
- public static final Codec<DataComponentPatch> CODEC = Codec.dispatchedMap(DataComponentPatch.PatchKey.CODEC, DataComponentPatch.PatchKey::valueCodec) | ||
+ public static final Codec<DataComponentPatch> CODEC = Codec.<PatchKey, Object>dispatchedMap(DataComponentPatch.PatchKey.CODEC, DataComponentPatch.PatchKey::valueCodec) | ||
.xmap(map -> { | ||
if (map.isEmpty()) { | ||
return EMPTY; |
11 changes: 0 additions & 11 deletions
11
versions/24w14a/patches/net/minecraft/core/component/DataComponentPredicate.java.patch
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
versions/24w14a/patches/net/minecraft/core/component/DataComponentType.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/24w14a/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
2 changes: 1 addition & 1 deletion
2
versions/24w14a/patches/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
versions/24w14a/patches/net/minecraft/server/level/ServerLevel.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/24w14a/patches/net/minecraft/server/network/ServerGamePacketListenerImpl.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/24w14a/patches/net/minecraft/util/ExtraCodecs.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: 0 additions & 11 deletions
11
versions/24w14a/patches/net/minecraft/util/datafix/fixes/AddNewChoices.java.patch
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...ns/24w14a/patches/net/minecraft/util/datafix/fixes/BlockPosFormatAndRenamesFix.java.patch
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
versions/24w14a/patches/net/minecraft/world/entity/Mob.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/24w14a/patches/net/minecraft/world/entity/SpawnPlacements.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
6 changes: 1 addition & 5 deletions
6
versions/24w14a/patches/net/minecraft/world/entity/animal/Sheep.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,15 +1,11 @@ | ||
--- a/net/minecraft/world/entity/animal/Sheep.java | ||
+++ b/net/minecraft/world/entity/animal/Sheep.java | ||
@@ -84,10 +_,10 @@ | ||
@@ -81,7 +_,7 @@ | ||
map.put(DyeColor.RED, Blocks.RED_WOOL); | ||
map.put(DyeColor.BLACK, Blocks.BLACK_WOOL); | ||
}); | ||
- private static final Map<DyeColor, float[]> COLORARRAY_BY_COLOR = Maps.newEnumMap( | ||
+ private static final Map<DyeColor, float[]> COLORARRAY_BY_COLOR = Maps.<DyeColor, float[]>newEnumMap( | ||
Arrays.stream(DyeColor.values()).collect(Collectors.toMap(color -> (DyeColor)color, Sheep::createSheepColor)) | ||
); | ||
- private static final Map<DyeColor, float[]> COLORARRAY_BY_POTATO = Maps.newEnumMap( | ||
+ private static final Map<DyeColor, float[]> COLORARRAY_BY_POTATO = Maps.<DyeColor, float[]>newEnumMap( | ||
Arrays.stream(DyeColor.values()).collect(Collectors.toMap(dyeColor -> (DyeColor)dyeColor, Sheep::createSheepColorPotato)) | ||
); | ||
private int eatAnimationTick; |
2 changes: 1 addition & 1 deletion
2
versions/24w14a/patches/net/minecraft/world/item/crafting/RecipeManager.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/24w14a/patches/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: 0 additions & 11 deletions
11
versions/24w14a/patches/net/minecraft/world/level/block/PointedDripstoneBlock.java.patch
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
versions/24w14a/patches/net/minecraft/world/level/levelgen/DensityFunctions.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,11 +1,11 @@ | ||
--- a/net/minecraft/world/level/levelgen/DensityFunctions.java | ||
+++ b/net/minecraft/world/level/levelgen/DensityFunctions.java | ||
@@ -294,7 +_,7 @@ | ||
@@ -300,7 +_,7 @@ | ||
} | ||
break; | ||
case MIN: | ||
- double d1 = this.argument2.minValue(); | ||
+ d1 = this.argument2.minValue(); | ||
case MAX: | ||
- double d1 = this.argument2.maxValue(); | ||
+ d1 = this.argument2.maxValue(); | ||
|
||
for (int i2 = 0; i2 < array.length; i2++) { | ||
double d2 = array[i2]; |
2 changes: 1 addition & 1 deletion
2
...ecraft/world/level/storage/loot/predicates/LootItemBlockStatePropertyCondition.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