Skip to content

Commit

Permalink
Update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
coehlrich committed Oct 10, 2024
1 parent 798f616 commit 625a174
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
);

for (int j = -1; j <= 1; j++) {
@@ -162,7 +162,7 @@
}
@@ -163,7 +163,7 @@

font$stringrenderoutput.renderCharacters();
Font.StringRenderOutput font$stringrenderoutput1 = new Font.StringRenderOutput(
- this, p_168652_, p_168647_, p_168648_, adjustColor(p_168649_), false, p_254170_, Font.DisplayMode.POLYGON_OFFSET, p_168653_
+ p_168652_, p_168647_, p_168648_, adjustColor(p_168649_), false, p_254170_, Font.DisplayMode.POLYGON_OFFSET, p_168653_
);
p_168646_.accept(font$stringrenderoutput1);
font$stringrenderoutput1.finish(p_168647_);
@@ -236,7 +236,7 @@
@@ -237,7 +237,7 @@
int p_273199_
) {
Font.StringRenderOutput font$stringrenderoutput = new Font.StringRenderOutput(
Expand All @@ -27,7 +27,7 @@
);
StringDecomposer.iterateFormatted(p_273765_, Style.EMPTY, font$stringrenderoutput);
return font$stringrenderoutput.finish(p_273532_);
@@ -255,7 +255,7 @@
@@ -256,7 +256,7 @@
int p_273371_
) {
Font.StringRenderOutput font$stringrenderoutput = new Font.StringRenderOutput(
Expand All @@ -36,15 +36,15 @@
);
p_273322_.accept(font$stringrenderoutput);
return font$stringrenderoutput.finish(p_272632_);
@@ -335,7 +335,6 @@
@@ -336,7 +336,6 @@
}

public StringRenderOutput(
- Font param1,
MultiBufferSource p_181365_,
float p_181366_,
float p_181367_,
@@ -345,11 +344,10 @@
@@ -346,11 +345,10 @@
Font.DisplayMode p_181371_,
int p_181372_
) {
Expand All @@ -57,15 +57,15 @@
MultiBufferSource p_379354_,
float p_380215_,
float p_380204_,
@@ -360,7 +358,6 @@
@@ -361,7 +359,6 @@
Font.DisplayMode p_380021_,
int p_379625_
) {
- this.this$0 = var1;
this.glyphInstances = new ArrayList<>();
this.bufferSource = p_379354_;
this.x = p_380215_;
@@ -376,8 +373,8 @@
@@ -377,8 +374,8 @@

@Override
public boolean accept(int p_92967_, Style p_92968_, int p_92969_) {
Expand All @@ -76,7 +76,7 @@
BakedGlyph bakedglyph = p_92968_.isObfuscated() && p_92969_ != 32 ? fontset.getRandomGlyph(glyphinfo) : fontset.getGlyph(p_92969_);
boolean flag = p_92968_.isBold();
TextColor textcolor = p_92968_.getColor();
@@ -409,7 +406,7 @@
@@ -410,7 +407,7 @@
BakedGlyph.Effect bakedglyph$effect = new BakedGlyph.Effect(
p_381032_ - 1.0F, this.y + 9.0F, this.x, this.y - 1.0F, -0.01F, this.backgroundColor
);
Expand All @@ -85,12 +85,12 @@
VertexConsumer vertexconsumer = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
bakedglyph.renderEffect(bakedglyph$effect, this.pose, vertexconsumer, this.packedLightCoords);
}
@@ -422,7 +419,7 @@

@@ -418,7 +415,7 @@
this.renderCharacters();
if (this.effects != null) {
if (bakedglyph == null) {
- bakedglyph = this.this$0.getFontSet(Style.DEFAULT_FONT).whiteGlyph();
+ bakedglyph = Font.this.getFontSet(Style.DEFAULT_FONT).whiteGlyph();
}

VertexConsumer vertexconsumer2 = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
VertexConsumer vertexconsumer1 = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
);

for (int j = -1; j <= 1; j++) {
@@ -165,7 +165,7 @@
}
@@ -166,7 +166,7 @@

font$stringrenderoutput.renderCharacters();
Font.StringRenderOutput font$stringrenderoutput1 = new Font.StringRenderOutput(
- this, p_168652_, p_168647_, p_168648_, adjustColor(p_168649_), false, p_254170_, Font.DisplayMode.POLYGON_OFFSET, p_168653_
+ p_168652_, p_168647_, p_168648_, adjustColor(p_168649_), false, p_254170_, Font.DisplayMode.POLYGON_OFFSET, p_168653_
);
p_168646_.accept(font$stringrenderoutput1);
font$stringrenderoutput1.finish(p_168647_);
@@ -239,7 +239,7 @@
@@ -240,7 +240,7 @@
int p_273199_
) {
Font.StringRenderOutput font$stringrenderoutput = new Font.StringRenderOutput(
Expand All @@ -27,7 +27,7 @@
);
StringDecomposer.iterateFormatted(p_273765_, Style.EMPTY, font$stringrenderoutput);
return font$stringrenderoutput.finish(p_273532_);
@@ -258,7 +258,7 @@
@@ -259,7 +259,7 @@
int p_273371_
) {
Font.StringRenderOutput font$stringrenderoutput = new Font.StringRenderOutput(
Expand All @@ -36,15 +36,15 @@
);
p_273322_.accept(font$stringrenderoutput);
return font$stringrenderoutput.finish(p_272632_);
@@ -340,7 +340,6 @@
@@ -341,7 +341,6 @@
}

public StringRenderOutput(
- Font param1,
MultiBufferSource p_181365_,
float p_181366_,
float p_181367_,
@@ -350,11 +349,10 @@
@@ -351,11 +350,10 @@
Font.DisplayMode p_181371_,
int p_181372_
) {
Expand All @@ -57,15 +57,15 @@
MultiBufferSource p_379354_,
float p_380215_,
float p_380204_,
@@ -365,7 +363,6 @@
@@ -366,7 +364,6 @@
Font.DisplayMode p_380021_,
int p_379625_
) {
- this.this$0 = var1;
this.glyphInstances = new ArrayList<>();
this.bufferSource = p_379354_;
this.x = p_380215_;
@@ -381,8 +378,8 @@
@@ -382,8 +379,8 @@

@Override
public boolean accept(int p_92967_, Style p_92968_, int p_92969_) {
Expand All @@ -76,7 +76,7 @@
BakedGlyph bakedglyph = p_92968_.isObfuscated() && p_92969_ != 32 ? fontset.getRandomGlyph(glyphinfo) : fontset.getGlyph(p_92969_);
boolean flag = p_92968_.isBold();
TextColor textcolor = p_92968_.getColor();
@@ -414,7 +411,7 @@
@@ -415,7 +412,7 @@
BakedGlyph.Effect bakedglyph$effect = new BakedGlyph.Effect(
p_381032_ - 1.0F, this.y + 9.0F, this.x, this.y - 1.0F, -0.01F, this.backgroundColor
);
Expand All @@ -85,12 +85,12 @@
VertexConsumer vertexconsumer = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
bakedglyph.renderEffect(bakedglyph$effect, this.pose, vertexconsumer, this.packedLightCoords);
}
@@ -427,7 +424,7 @@

@@ -423,7 +420,7 @@
this.renderCharacters();
if (this.effects != null) {
if (bakedglyph == null) {
- bakedglyph = this.this$0.getFontSet(Style.DEFAULT_FONT).whiteGlyph();
+ bakedglyph = Font.this.getFontSet(Style.DEFAULT_FONT).whiteGlyph();
}

VertexConsumer vertexconsumer2 = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
VertexConsumer vertexconsumer1 = this.bufferSource.getBuffer(bakedglyph.renderType(this.mode));
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
d6 = d3 - entity.getX();
d7 = d4 - entity.getY();
if (d7 > -0.5 || d7 < 0.5) {
@@ -449,7 +450,7 @@
@@ -450,7 +451,7 @@
Vec3 vec3 = new Vec3(entity.getX() - d0, entity.getY() - d1, entity.getZ() - d2);
this.handlePlayerKnownMovement(vec3);
this.player.checkMovementStatistics(vec3.x, vec3.y, vec3.z);
Expand All @@ -17,7 +17,7 @@
&& !flag1
&& !this.server.isFlightAllowed()
&& !entity.isNoGravity()
@@ -790,7 +791,7 @@
@@ -791,7 +792,7 @@
if (itemstack.has(DataComponents.WRITABLE_BOOK_CONTENT)) {
ItemStack itemstack1 = itemstack.transmuteCopy(Items.WRITTEN_BOOK);
itemstack1.remove(DataComponents.WRITABLE_BOOK_CONTENT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/Entity.java
+++ b/net/minecraft/world/entity/Entity.java
@@ -484,7 +484,7 @@
@@ -488,7 +488,7 @@

this.firstTick = false;
if (this.level() instanceof ServerLevel serverlevel1 && this instanceof Leashable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
+ ImmutableList.<net.minecraft.world.entity.ai.behavior.BehaviorControl<? super Piglin>>of(
avoidRepellent(),
SetEntityLookTarget.create(PiglinAi::isPlayerHoldingLovedItem, 14.0F),
StartAttacking.<Piglin>create((p_379182_, p_379183_) -> p_379183_.isAdult(), PiglinAi::findNearestValidAttackTarget),
StartAttacking.<Piglin>create((p_381526_, p_381527_) -> p_381527_.isAdult(), PiglinAi::findNearestValidAttackTarget),
- BehaviorBuilder.triggerIf(p_34804_ -> !p_34804_.isDancing(), GoToTargetLocation.create(MemoryModuleType.CELEBRATE_LOCATION, 2, 1.0F)),
- BehaviorBuilder.triggerIf(Piglin::isDancing, GoToTargetLocation.create(MemoryModuleType.CELEBRATE_LOCATION, 4, 0.6F)),
- new RunOne<LivingEntity>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/world/item/AdventureModePredicate.java
+++ b/net/minecraft/world/item/AdventureModePredicate.java
@@ -113,7 +113,7 @@
@@ -115,7 +115,7 @@
return p_332164_.stream()
.flatMap(p_330395_ -> p_330395_.blocks().orElseThrow().stream())
.distinct()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
- p_360056_ -> p_360056_.<HolderSet.Direct<Item>>map(p_360062_ -> p_360062_.values).orElse(HolderSet.direct())
+ p_360056_ -> p_360056_.map(p_360062_ -> p_360062_.values).orElse(HolderSet.direct())
);
public static final Codec<HolderSet<Item>> NON_AIR_HOLDER_SET_CODEC = HolderSetCodec.create(Registries.ITEM, ItemStack.ITEM_NON_AIR_CODEC, false);
public static final Codec<HolderSet<Item>> NON_AIR_HOLDER_SET_CODEC = HolderSetCodec.create(Registries.ITEM, Item.CODEC, false);
public static final Codec<Ingredient> CODEC = ExtraCodecs.nonEmptyHolderSet(NON_AIR_HOLDER_SET_CODEC).xmap(Ingredient::new, p_360061_ -> p_360061_.values);

0 comments on commit 625a174

Please sign in to comment.