Initial 1.16.2 Update

This commit is contained in:
LexManos 2020-08-13 00:13:48 -07:00
parent a3c4ffd2c1
commit fe43088c96
233 changed files with 1644 additions and 2297 deletions

View File

@ -67,8 +67,8 @@ ext {
} }
MAPPING_CHANNEL = 'snapshot' MAPPING_CHANNEL = 'snapshot'
MAPPING_VERSION = '20200514-1.16' MAPPING_VERSION = '20200514-1.16'
MC_VERSION = '1.16.1' MC_VERSION = '1.16.2'
MCP_VERSION = '20200625.160719' MCP_VERSION = '20200812.004259'
} }
project(':mcp') { project(':mcp') {
@ -211,7 +211,7 @@ project(':forge') {
} }
ext { ext {
SPEC_VERSION = '31.2' // This is overwritten by git tag, but here so dev time doesnt explode SPEC_VERSION = '33.0' // This is overwritten by git tag, but here so dev time doesnt explode
// The new versioning sceme is <MCVersion>-<ForgeMC>.<RB>.<CommitsSinceRB> // The new versioning sceme is <MCVersion>-<ForgeMC>.<RB>.<CommitsSinceRB>
// ForgeMC is a unique identifier for every MC version we have supported. // ForgeMC is a unique identifier for every MC version we have supported.
// Essentially, the same as the old, except dropping the first number, and the builds are no longer unique. // Essentially, the same as the old, except dropping the first number, and the builds are no longer unique.

View File

@ -15,4 +15,4 @@
+ +
public void func_230430_a_(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) { public void func_230430_a_(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) {
this.func_230446_a_(p_230430_1_); this.func_230446_a_(p_230430_1_);
this.func_238472_a_(p_230430_1_, this.field_230712_o_, this.field_224229_b, this.field_230708_k_ / 2, 80, 16777215); func_238472_a_(p_230430_1_, this.field_230712_o_, this.field_224229_b, this.field_230708_k_ / 2, 80, 16777215);

View File

@ -4,8 +4,8 @@
public void func_192113_a(ServerPlayerEntity p_192113_1_) { public void func_192113_a(ServerPlayerEntity p_192113_1_) {
p_192113_1_.func_195068_e(this.field_192115_b); p_192113_1_.func_195068_e(this.field_192115_b);
- LootContext lootcontext = (new LootContext.Builder(p_192113_1_.func_71121_q())).func_216015_a(LootParameters.field_216281_a, p_192113_1_).func_216015_a(LootParameters.field_216286_f, p_192113_1_.func_233580_cy_()).func_216023_a(p_192113_1_.func_70681_au()).func_216022_a(LootParameterSets.field_216265_f); - LootContext lootcontext = (new LootContext.Builder(p_192113_1_.func_71121_q())).func_216015_a(LootParameters.field_216281_a, p_192113_1_).func_216015_a(LootParameters.field_237457_g_, p_192113_1_.func_213303_ch()).func_216023_a(p_192113_1_.func_70681_au()).func_216022_a(LootParameterSets.field_216265_f);
+ LootContext lootcontext = (new LootContext.Builder(p_192113_1_.func_71121_q())).func_216015_a(LootParameters.field_216281_a, p_192113_1_).func_216015_a(LootParameters.field_216286_f, p_192113_1_.func_233580_cy_()).func_216023_a(p_192113_1_.func_70681_au()).func_186469_a(p_192113_1_.func_184817_da()).func_216022_a(LootParameterSets.field_216265_f); // FORGE: luck to LootContext + LootContext lootcontext = (new LootContext.Builder(p_192113_1_.func_71121_q())).func_216015_a(LootParameters.field_216281_a, p_192113_1_).func_216015_a(LootParameters.field_237457_g_, p_192113_1_.func_213303_ch()).func_216023_a(p_192113_1_.func_70681_au()).func_186469_a(p_192113_1_.func_184817_da()).func_216022_a(LootParameterSets.field_216265_f); // FORGE: luck to LootContext
boolean flag = false; boolean flag = false;
for(ResourceLocation resourcelocation : this.field_192116_c) { for(ResourceLocation resourcelocation : this.field_192116_c) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/AbstractBlock.java --- a/net/minecraft/block/AbstractBlock.java
+++ b/net/minecraft/block/AbstractBlock.java +++ b/net/minecraft/block/AbstractBlock.java
@@ -59,7 +59,8 @@ @@ -60,7 +60,8 @@
import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.OnlyIn;
@ -10,7 +10,7 @@
protected static final Direction[] field_212556_a = new Direction[]{Direction.WEST, Direction.EAST, Direction.NORTH, Direction.SOUTH, Direction.DOWN, Direction.UP}; protected static final Direction[] field_212556_a = new Direction[]{Direction.WEST, Direction.EAST, Direction.NORTH, Direction.SOUTH, Direction.DOWN, Direction.UP};
protected final Material field_149764_J; protected final Material field_149764_J;
protected final boolean field_235688_at_; protected final boolean field_235688_at_;
@@ -86,6 +87,8 @@ @@ -87,6 +88,8 @@
this.field_226887_g_ = p_i241196_1_.field_226894_k_; this.field_226887_g_ = p_i241196_1_.field_226894_k_;
this.field_208621_p = p_i241196_1_.field_208772_j; this.field_208621_p = p_i241196_1_.field_208772_j;
this.field_235684_aB_ = p_i241196_1_; this.field_235684_aB_ = p_i241196_1_;
@ -19,7 +19,7 @@
} }
@Deprecated @Deprecated
@@ -128,7 +131,7 @@ @@ -129,7 +132,7 @@
@Deprecated @Deprecated
public void func_196243_a(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) { public void func_196243_a(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) {
@ -28,7 +28,7 @@
p_196243_2_.func_175713_t(p_196243_3_); p_196243_2_.func_175713_t(p_196243_3_);
} }
@@ -190,7 +193,7 @@ @@ -191,7 +194,7 @@
@Deprecated @Deprecated
public boolean func_196253_a(BlockState p_196253_1_, BlockItemUseContext p_196253_2_) { public boolean func_196253_a(BlockState p_196253_1_, BlockItemUseContext p_196253_2_) {
@ -37,7 +37,7 @@
} }
@Deprecated @Deprecated
@@ -293,8 +296,8 @@ @@ -294,8 +297,8 @@
if (f == -1.0F) { if (f == -1.0F) {
return 0.0F; return 0.0F;
} else { } else {
@ -48,7 +48,7 @@
} }
} }
@@ -320,14 +323,14 @@ @@ -321,14 +324,14 @@
return 0; return 0;
} }
@ -65,7 +65,7 @@
} }
return this.field_220085_g; return this.field_220085_g;
@@ -345,6 +348,10 @@ @@ -346,6 +349,10 @@
return this.field_235684_aB_.field_235800_b_.apply(this.func_230328_p_().func_176223_P()); return this.field_235684_aB_.field_235800_b_.apply(this.func_230328_p_().func_176223_P());
} }
@ -76,7 +76,7 @@
public abstract static class AbstractBlockState extends StateHolder<Block, BlockState> { public abstract static class AbstractBlockState extends StateHolder<Block, BlockState> {
private final int field_215708_d; private final int field_215708_d;
private final boolean field_215709_e; private final boolean field_215709_e;
@@ -427,6 +434,8 @@ @@ -428,6 +435,8 @@
return this.field_215708_d; return this.field_215708_d;
} }
@ -85,7 +85,7 @@
public boolean func_196958_f() { public boolean func_196958_f() {
return this.field_235702_f_; return this.field_235702_f_;
} }
@@ -435,6 +444,8 @@ @@ -436,6 +445,8 @@
return this.field_235704_h_; return this.field_235704_h_;
} }
@ -94,7 +94,7 @@
public BlockState func_185907_a(Rotation p_185907_1_) { public BlockState func_185907_a(Rotation p_185907_1_) {
return this.func_177230_c().func_185499_a(this.func_230340_p_(), p_185907_1_); return this.func_177230_c().func_185499_a(this.func_230340_p_(), p_185907_1_);
} }
@@ -786,6 +797,9 @@ @@ -802,6 +813,9 @@
private ResourceLocation field_222381_j; private ResourceLocation field_222381_j;
private boolean field_226895_m_ = true; private boolean field_226895_m_ = true;
private boolean field_235813_o_; private boolean field_235813_o_;
@ -104,7 +104,7 @@
private AbstractBlock.IExtendedPositionPredicate<EntityType<?>> field_235814_p_ = (p_235832_0_, p_235832_1_, p_235832_2_, p_235832_3_) -> { private AbstractBlock.IExtendedPositionPredicate<EntityType<?>> field_235814_p_ = (p_235832_0_, p_235832_1_, p_235832_2_, p_235832_3_) -> {
return p_235832_0_.func_224755_d(p_235832_1_, p_235832_2_, Direction.UP) && p_235832_0_.func_185906_d() < 14; return p_235832_0_.func_224755_d(p_235832_1_, p_235832_2_, Direction.UP) && p_235832_0_.func_185906_d() < 14;
}; };
@@ -847,6 +861,8 @@ @@ -863,6 +877,8 @@
abstractblock$properties.field_226895_m_ = p_200950_0_.field_235684_aB_.field_226895_m_; abstractblock$properties.field_226895_m_ = p_200950_0_.field_235684_aB_.field_226895_m_;
abstractblock$properties.field_235813_o_ = p_200950_0_.field_235684_aB_.field_235813_o_; abstractblock$properties.field_235813_o_ = p_200950_0_.field_235684_aB_.field_235813_o_;
abstractblock$properties.field_235806_h_ = p_200950_0_.field_235684_aB_.field_235806_h_; abstractblock$properties.field_235806_h_ = p_200950_0_.field_235684_aB_.field_235806_h_;
@ -113,7 +113,7 @@
return abstractblock$properties; return abstractblock$properties;
} }
@@ -861,6 +877,24 @@ @@ -877,6 +893,24 @@
return this; return this;
} }
@ -138,7 +138,7 @@
public AbstractBlock.Properties func_200941_a(float p_200941_1_) { public AbstractBlock.Properties func_200941_a(float p_200941_1_) {
this.field_200961_i = p_200941_1_; this.field_200961_i = p_200941_1_;
return this; return this;
@@ -917,7 +951,7 @@ @@ -933,7 +967,7 @@
} }
public AbstractBlock.Properties func_222379_b(Block p_222379_1_) { public AbstractBlock.Properties func_222379_b(Block p_222379_1_) {

View File

@ -0,0 +1,10 @@
--- a/net/minecraft/block/AbstractFireBlock.java
+++ b/net/minecraft/block/AbstractFireBlock.java
@@ -124,6 +124,7 @@
if (!p_220082_4_.func_203425_a(p_220082_1_.func_177230_c())) {
if (func_242649_a(p_220082_2_)) {
Optional<PortalSize> optional = PortalSize.func_242964_a(p_220082_2_, p_220082_3_, Direction.Axis.X);
+ optional = net.minecraftforge.event.ForgeEventFactory.onTrySpawnPortal(p_220082_2_, p_220082_3_, optional);
if (optional.isPresent()) {
optional.get().func_150859_c();
return;

View File

@ -20,13 +20,13 @@
@@ -61,7 +62,7 @@ @@ -61,7 +62,7 @@
public void func_220069_a(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) { public void func_220069_a(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) {
if (!p_220069_2_.field_72995_K) { if (!p_220069_2_.field_72995_K && p_220069_2_.func_180495_p(p_220069_3_).func_203425_a(this)) {
- RailShape railshape = p_220069_1_.func_177229_b(this.func_176560_l()); - RailShape railshape = p_220069_1_.func_177229_b(this.func_176560_l());
+ RailShape railshape = getRailDirection(p_220069_1_, p_220069_2_, p_220069_3_, null); + RailShape railshape = getRailDirection(p_220069_1_, p_220069_2_, p_220069_3_, null);
if (func_235328_a_(p_220069_3_, p_220069_2_, railshape) && !p_220069_2_.func_175623_d(p_220069_3_)) { if (func_235328_a_(p_220069_3_, p_220069_2_, railshape)) {
if (!p_220069_6_) { func_220075_c(p_220069_1_, p_220069_2_, p_220069_3_);
func_220075_c(p_220069_1_, p_220069_2_, p_220069_3_); p_220069_2_.func_217377_a(p_220069_3_, p_220069_6_);
@@ -113,7 +114,7 @@ @@ -110,7 +111,7 @@
public void func_196243_a(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) { public void func_196243_a(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) {
if (!p_196243_5_) { if (!p_196243_5_) {
super.func_196243_a(p_196243_1_, p_196243_2_, p_196243_3_, p_196243_4_, p_196243_5_); super.func_196243_a(p_196243_1_, p_196243_2_, p_196243_3_, p_196243_4_, p_196243_5_);
@ -35,7 +35,7 @@
p_196243_2_.func_195593_d(p_196243_3_.func_177984_a(), this); p_196243_2_.func_195593_d(p_196243_3_.func_177984_a(), this);
} }
@@ -132,5 +133,20 @@ @@ -129,5 +130,20 @@
return blockstate.func_206870_a(this.func_176560_l(), flag ? RailShape.EAST_WEST : RailShape.NORTH_SOUTH); return blockstate.func_206870_a(this.func_176560_l(), flag ? RailShape.EAST_WEST : RailShape.NORTH_SOUTH);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/AbstractTopPlantBlock.java --- a/net/minecraft/block/AbstractTopPlantBlock.java
+++ b/net/minecraft/block/AbstractTopPlantBlock.java +++ b/net/minecraft/block/AbstractTopPlantBlock.java
@@ -39,10 +39,11 @@ @@ -32,10 +32,11 @@
} }
public void func_225542_b_(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) { public void func_225542_b_(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/BambooBlock.java --- a/net/minecraft/block/BambooBlock.java
+++ b/net/minecraft/block/BambooBlock.java +++ b/net/minecraft/block/BambooBlock.java
@@ -101,8 +101,9 @@ @@ -102,8 +102,9 @@
if (p_225542_1_.func_177229_b(field_220266_f) == 0) { if (p_225542_1_.func_177229_b(field_220266_f) == 0) {
if (p_225542_4_.nextInt(3) == 0 && p_225542_2_.func_175623_d(p_225542_3_.func_177984_a()) && p_225542_2_.func_226659_b_(p_225542_3_.func_177984_a(), 0) >= 9) { if (p_225542_4_.nextInt(3) == 0 && p_225542_2_.func_175623_d(p_225542_3_.func_177984_a()) && p_225542_2_.func_226659_b_(p_225542_3_.func_177984_a(), 0) >= 9) {
int i = this.func_220260_b(p_225542_2_, p_225542_3_) + 1; int i = this.func_220260_b(p_225542_2_, p_225542_3_) + 1;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/Block.java --- a/net/minecraft/block/Block.java
+++ b/net/minecraft/block/Block.java +++ b/net/minecraft/block/Block.java
@@ -52,9 +52,10 @@ @@ -54,9 +54,10 @@
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
@ -22,7 +22,7 @@
this.field_176227_L = builder.func_235882_a_(Block::func_176223_P, BlockState::new); this.field_176227_L = builder.func_235882_a_(Block::func_176223_P, BlockState::new);
this.func_180632_j(this.field_176227_L.func_177621_b()); this.func_180632_j(this.field_176227_L.func_177621_b());
} }
@@ -270,7 +273,7 @@ @@ -261,7 +264,7 @@
} }
public static void func_180635_a(World p_180635_0_, BlockPos p_180635_1_, ItemStack p_180635_2_) { public static void func_180635_a(World p_180635_0_, BlockPos p_180635_1_, ItemStack p_180635_2_) {
@ -31,16 +31,16 @@
float f = 0.5F; float f = 0.5F;
double d0 = (double)(p_180635_0_.field_73012_v.nextFloat() * 0.5F) + 0.25D; double d0 = (double)(p_180635_0_.field_73012_v.nextFloat() * 0.5F) + 0.25D;
double d1 = (double)(p_180635_0_.field_73012_v.nextFloat() * 0.5F) + 0.25D; double d1 = (double)(p_180635_0_.field_73012_v.nextFloat() * 0.5F) + 0.25D;
@@ -282,7 +285,7 @@ @@ -273,7 +276,7 @@
} }
public void func_180637_b(World p_180637_1_, BlockPos p_180637_2_, int p_180637_3_) { public void func_180637_b(ServerWorld p_180637_1_, BlockPos p_180637_2_, int p_180637_3_) {
- if (!p_180637_1_.field_72995_K && p_180637_1_.func_82736_K().func_223586_b(GameRules.field_223603_f)) { - if (p_180637_1_.func_82736_K().func_223586_b(GameRules.field_223603_f)) {
+ if (!p_180637_1_.field_72995_K && p_180637_1_.func_82736_K().func_223586_b(GameRules.field_223603_f) && !p_180637_1_.restoringBlockSnapshots) { + if (p_180637_1_.func_82736_K().func_223586_b(GameRules.field_223603_f) && !p_180637_1_.restoringBlockSnapshots) {
while(p_180637_3_ > 0) { while(p_180637_3_ > 0) {
int i = ExperienceOrbEntity.func_70527_a(p_180637_3_); int i = ExperienceOrbEntity.func_70527_a(p_180637_3_);
p_180637_3_ -= i; p_180637_3_ -= i;
@@ -292,6 +295,7 @@ @@ -283,6 +286,7 @@
} }
@ -48,7 +48,7 @@
public float func_149638_a() { public float func_149638_a() {
return this.field_235689_au_; return this.field_235689_au_;
} }
@@ -341,6 +345,7 @@ @@ -332,6 +336,7 @@
p_176216_2_.func_213317_d(p_176216_2_.func_213322_ci().func_216372_d(1.0D, 0.0D, 1.0D)); p_176216_2_.func_213317_d(p_176216_2_.func_213322_ci().func_216372_d(1.0D, 0.0D, 1.0D));
} }
@ -56,7 +56,7 @@
public ItemStack func_185473_a(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) { public ItemStack func_185473_a(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) {
return new ItemStack(this); return new ItemStack(this);
} }
@@ -372,6 +377,7 @@ @@ -363,6 +368,7 @@
public void func_176224_k(World p_176224_1_, BlockPos p_176224_2_) { public void func_176224_k(World p_176224_1_, BlockPos p_176224_2_) {
} }
@ -64,7 +64,7 @@
public boolean func_149659_a(Explosion p_149659_1_) { public boolean func_149659_a(Explosion p_149659_1_) {
return true; return true;
} }
@@ -391,6 +397,7 @@ @@ -382,6 +388,7 @@
return this.field_196275_y; return this.field_196275_y;
} }
@ -72,7 +72,7 @@
public SoundType func_220072_p(BlockState p_220072_1_) { public SoundType func_220072_p(BlockState p_220072_1_) {
return this.field_149762_H; return this.field_149762_H;
} }
@@ -400,7 +407,7 @@ @@ -391,7 +398,7 @@
this.field_220086_i = Item.func_150898_a(this); this.field_220086_i = Item.func_150898_a(this);
} }
@ -81,7 +81,7 @@
} }
public boolean func_208619_r() { public boolean func_208619_r() {
@@ -408,7 +415,7 @@ @@ -399,7 +406,7 @@
} }
public String toString() { public String toString() {
@ -90,7 +90,7 @@
} }
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
@@ -419,6 +426,83 @@ @@ -410,6 +417,83 @@
return this; return this;
} }
@ -137,7 +137,7 @@
+ } else if (net.minecraftforge.common.PlantType.CROP.equals(type)) { + } else if (net.minecraftforge.common.PlantType.CROP.equals(type)) {
+ return state.func_203425_a(Blocks.field_150458_ak); + return state.func_203425_a(Blocks.field_150458_ak);
+ } else if (net.minecraftforge.common.PlantType.CAVE.equals(type)) { + } else if (net.minecraftforge.common.PlantType.CAVE.equals(type)) {
+ return Block.func_220056_d(state, world, pos, Direction.UP); + return state.func_224755_d(world, pos, Direction.UP);
+ } else if (net.minecraftforge.common.PlantType.PLAINS.equals(type)) { + } else if (net.minecraftforge.common.PlantType.PLAINS.equals(type)) {
+ return this.getBlock() == Blocks.field_196658_i || net.minecraftforge.common.Tags.Blocks.DIRT.func_230235_a_(this) || this.getBlock() == Blocks.field_150458_ak; + return this.getBlock() == Blocks.field_196658_i || net.minecraftforge.common.Tags.Blocks.DIRT.func_230235_a_(this) || this.getBlock() == Blocks.field_150458_ak;
+ } else if (net.minecraftforge.common.PlantType.WATER.equals(type)) { + } else if (net.minecraftforge.common.PlantType.WATER.equals(type)) {

View File

@ -1,14 +1,14 @@
--- a/net/minecraft/block/Blocks.java --- a/net/minecraft/block/Blocks.java
+++ b/net/minecraft/block/Blocks.java +++ b/net/minecraft/block/Blocks.java
@@ -26,6 +26,7 @@ @@ -25,6 +25,7 @@
import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.IBlockReader;
import net.minecraft.world.gen.feature.HugeFungusConfig; import net.minecraft.world.gen.feature.Features;
+@net.minecraftforge.registries.ObjectHolder("minecraft") +@net.minecraftforge.registries.ObjectHolder("minecraft")
public class Blocks { public class Blocks {
public static final Block field_150350_a = func_222382_a("air", new AirBlock(AbstractBlock.Properties.func_200945_a(Material.field_151579_a).func_200942_a().func_222380_e().func_235859_g_())); public static final Block field_150350_a = func_222382_a("air", new AirBlock(AbstractBlock.Properties.func_200945_a(Material.field_151579_a).func_200942_a().func_222380_e().func_235859_g_()));
public static final Block field_150348_b = func_222382_a("stone", new Block(AbstractBlock.Properties.func_200949_a(Material.field_151576_e, MaterialColor.field_151665_m).func_235861_h_().func_200948_a(1.5F, 6.0F))); public static final Block field_150348_b = func_222382_a("stone", new Block(AbstractBlock.Properties.func_200949_a(Material.field_151576_e, MaterialColor.field_151665_m).func_235861_h_().func_200948_a(1.5F, 6.0F)));
@@ -120,7 +121,7 @@ @@ -119,7 +120,7 @@
public static final Block field_196601_az = func_222382_a("green_bed", func_235422_a_(DyeColor.GREEN)); public static final Block field_196601_az = func_222382_a("green_bed", func_235422_a_(DyeColor.GREEN));
public static final Block field_196550_aA = func_222382_a("red_bed", func_235422_a_(DyeColor.RED)); public static final Block field_196550_aA = func_222382_a("red_bed", func_235422_a_(DyeColor.RED));
public static final Block field_196551_aB = func_222382_a("black_bed", func_235422_a_(DyeColor.BLACK)); public static final Block field_196551_aB = func_222382_a("black_bed", func_235422_a_(DyeColor.BLACK));
@ -17,7 +17,7 @@
public static final Block field_150319_E = func_222382_a("detector_rail", new DetectorRailBlock(AbstractBlock.Properties.func_200945_a(Material.field_151594_q).func_200942_a().func_200943_b(0.7F).func_200947_a(SoundType.field_185852_e))); public static final Block field_150319_E = func_222382_a("detector_rail", new DetectorRailBlock(AbstractBlock.Properties.func_200945_a(Material.field_151594_q).func_200942_a().func_200943_b(0.7F).func_200947_a(SoundType.field_185852_e)));
public static final Block field_150320_F = func_222382_a("sticky_piston", func_235432_a_(true)); public static final Block field_150320_F = func_222382_a("sticky_piston", func_235432_a_(true));
public static final Block field_196553_aF = func_222382_a("cobweb", new WebBlock(AbstractBlock.Properties.func_200945_a(Material.field_151569_G).func_200942_a().func_235861_h_().func_200943_b(4.0F))); public static final Block field_196553_aF = func_222382_a("cobweb", new WebBlock(AbstractBlock.Properties.func_200945_a(Material.field_151569_G).func_200942_a().func_235861_h_().func_200943_b(4.0F)));
@@ -938,15 +939,4 @@ @@ -937,15 +938,4 @@
public static void func_235419_a_() { public static void func_235419_a_() {
Block.field_176229_d.forEach(AbstractBlock.AbstractBlockState::func_215692_c); Block.field_176229_d.forEach(AbstractBlock.AbstractBlockState::func_215692_c);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/DetectorRailBlock.java --- a/net/minecraft/block/DetectorRailBlock.java
+++ b/net/minecraft/block/DetectorRailBlock.java +++ b/net/minecraft/block/DetectorRailBlock.java
@@ -129,6 +129,8 @@ @@ -131,6 +131,8 @@
} }
List<AbstractMinecartEntity> list1 = this.func_200878_a(p_180641_2_, p_180641_3_, AbstractMinecartEntity.class, EntityPredicates.field_96566_b); List<AbstractMinecartEntity> list1 = this.func_200878_a(p_180641_2_, p_180641_3_, AbstractMinecartEntity.class, EntityPredicates.field_96566_b);

View File

@ -1,11 +1,11 @@
--- a/net/minecraft/block/FireBlock.java --- a/net/minecraft/block/FireBlock.java
+++ b/net/minecraft/block/FireBlock.java +++ b/net/minecraft/block/FireBlock.java
@@ -76,13 +76,13 @@ @@ -92,13 +92,13 @@
protected BlockState func_196448_a(IBlockReader p_196448_1_, BlockPos p_196448_2_) { protected BlockState func_196448_a(IBlockReader p_196448_1_, BlockPos p_196448_2_) {
BlockPos blockpos = p_196448_2_.func_177977_b(); BlockPos blockpos = p_196448_2_.func_177977_b();
BlockState blockstate = p_196448_1_.func_180495_p(blockpos); BlockState blockstate = p_196448_1_.func_180495_p(blockpos);
- if (!this.func_196446_i(blockstate) && !blockstate.func_224755_d(p_196448_1_, blockpos, Direction.UP)) { - if (!this.func_196446_i(blockstate) && !blockstate.func_224755_d(p_196448_1_, blockpos, Direction.UP)) {
+ if (!this.canCatchFire(p_196448_1_, p_196448_2_, Direction.UP) && !Block.func_220056_d(blockstate, p_196448_1_, blockpos, Direction.UP)) { + if (!this.canCatchFire(p_196448_1_, p_196448_2_, Direction.UP) && !blockstate.func_224755_d(p_196448_1_, blockpos, Direction.UP)) {
BlockState blockstate1 = this.func_176223_P(); BlockState blockstate1 = this.func_176223_P();
for(Direction direction : Direction.values()) { for(Direction direction : Direction.values()) {
@ -16,7 +16,7 @@
} }
} }
@@ -105,7 +105,7 @@ @@ -121,7 +121,7 @@
} }
BlockState blockstate = p_225534_2_.func_180495_p(p_225534_3_.func_177977_b()); BlockState blockstate = p_225534_2_.func_180495_p(p_225534_3_.func_177977_b());
@ -25,7 +25,7 @@
int i = p_225534_1_.func_177229_b(field_176543_a); int i = p_225534_1_.func_177229_b(field_176543_a);
if (!flag && p_225534_2_.func_72896_J() && this.func_176537_d(p_225534_2_, p_225534_3_) && p_225534_4_.nextFloat() < 0.2F + (float)i * 0.03F) { if (!flag && p_225534_2_.func_72896_J() && this.func_176537_d(p_225534_2_, p_225534_3_) && p_225534_4_.nextFloat() < 0.2F + (float)i * 0.03F) {
p_225534_2_.func_217377_a(p_225534_3_, false); p_225534_2_.func_217377_a(p_225534_3_, false);
@@ -126,7 +126,7 @@ @@ -142,7 +142,7 @@
return; return;
} }
@ -34,7 +34,7 @@
p_225534_2_.func_217377_a(p_225534_3_, false); p_225534_2_.func_217377_a(p_225534_3_, false);
return; return;
} }
@@ -134,12 +134,12 @@ @@ -150,12 +150,12 @@
boolean flag1 = p_225534_2_.func_180502_D(p_225534_3_); boolean flag1 = p_225534_2_.func_180502_D(p_225534_3_);
int k = flag1 ? -50 : 0; int k = flag1 ? -50 : 0;
@ -53,7 +53,7 @@
BlockPos.Mutable blockpos$mutable = new BlockPos.Mutable(); BlockPos.Mutable blockpos$mutable = new BlockPos.Mutable();
for(int l = -1; l <= 1; ++l) { for(int l = -1; l <= 1; ++l) {
@@ -177,16 +177,18 @@ @@ -193,16 +193,18 @@
return p_176537_1_.func_175727_C(p_176537_2_) || p_176537_1_.func_175727_C(p_176537_2_.func_177976_e()) || p_176537_1_.func_175727_C(p_176537_2_.func_177974_f()) || p_176537_1_.func_175727_C(p_176537_2_.func_177978_c()) || p_176537_1_.func_175727_C(p_176537_2_.func_177968_d()); return p_176537_1_.func_175727_C(p_176537_2_) || p_176537_1_.func_175727_C(p_176537_2_.func_177976_e()) || p_176537_1_.func_175727_C(p_176537_2_.func_177974_f()) || p_176537_1_.func_175727_C(p_176537_2_.func_177978_c()) || p_176537_1_.func_175727_C(p_176537_2_.func_177968_d());
} }
@ -74,7 +74,7 @@
if (p_176536_4_.nextInt(p_176536_3_) < i) { if (p_176536_4_.nextInt(p_176536_3_) < i) {
BlockState blockstate = p_176536_1_.func_180495_p(p_176536_2_); BlockState blockstate = p_176536_1_.func_180495_p(p_176536_2_);
if (p_176536_4_.nextInt(p_176536_5_ + 10) < 5 && !p_176536_1_.func_175727_C(p_176536_2_)) { if (p_176536_4_.nextInt(p_176536_5_ + 10) < 5 && !p_176536_1_.func_175727_C(p_176536_2_)) {
@@ -196,11 +198,7 @@ @@ -212,11 +214,7 @@
p_176536_1_.func_217377_a(p_176536_2_, false); p_176536_1_.func_217377_a(p_176536_2_, false);
} }
@ -87,7 +87,7 @@
} }
} }
@@ -212,7 +210,7 @@ @@ -228,7 +226,7 @@
private boolean func_196447_a(IBlockReader p_196447_1_, BlockPos p_196447_2_) { private boolean func_196447_a(IBlockReader p_196447_1_, BlockPos p_196447_2_) {
for(Direction direction : Direction.values()) { for(Direction direction : Direction.values()) {
@ -96,7 +96,7 @@
return true; return true;
} }
} }
@@ -228,13 +226,14 @@ @@ -244,13 +242,14 @@
for(Direction direction : Direction.values()) { for(Direction direction : Direction.values()) {
BlockState blockstate = p_176538_1_.func_180495_p(p_176538_2_.func_177972_a(direction)); BlockState blockstate = p_176538_1_.func_180495_p(p_176538_2_.func_177972_a(direction));
@ -112,7 +112,7 @@
protected boolean func_196446_i(BlockState p_196446_1_) { protected boolean func_196446_i(BlockState p_196446_1_) {
return this.func_220275_r(p_196446_1_) > 0; return this.func_220275_r(p_196446_1_) > 0;
} }
@@ -253,10 +252,23 @@ @@ -269,10 +268,23 @@
} }
private void func_180686_a(Block p_180686_1_, int p_180686_2_, int p_180686_3_) { private void func_180686_a(Block p_180686_1_, int p_180686_2_, int p_180686_3_) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/FlowingFluidBlock.java --- a/net/minecraft/block/FlowingFluidBlock.java
+++ b/net/minecraft/block/FlowingFluidBlock.java +++ b/net/minecraft/block/FlowingFluidBlock.java
@@ -31,10 +31,11 @@ @@ -29,10 +29,11 @@
public class FlowingFluidBlock extends Block implements IBucketPickupHandler { public class FlowingFluidBlock extends Block implements IBucketPickupHandler {
public static final IntegerProperty field_176367_b = BlockStateProperties.field_208132_ag; public static final IntegerProperty field_176367_b = BlockStateProperties.field_208132_ag;
@ -13,7 +13,7 @@
public FlowingFluidBlock(FlowingFluid p_i49014_1_, AbstractBlock.Properties p_i49014_2_) { public FlowingFluidBlock(FlowingFluid p_i49014_1_, AbstractBlock.Properties p_i49014_2_) {
super(p_i49014_2_); super(p_i49014_2_);
this.field_204517_c = p_i49014_1_; this.field_204517_c = p_i49014_1_;
@@ -47,8 +48,21 @@ @@ -45,8 +46,21 @@
this.field_212565_c.add(p_i49014_1_.func_207207_a(8, true)); this.field_212565_c.add(p_i49014_1_.func_207207_a(8, true));
this.func_180632_j(this.field_176227_L.func_177621_b().func_206870_a(field_176367_b, Integer.valueOf(0))); this.func_180632_j(this.field_176227_L.func_177621_b().func_206870_a(field_176367_b, Integer.valueOf(0)));
@ -35,7 +35,7 @@
public VoxelShape func_220071_b(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) { public VoxelShape func_220071_b(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) {
return p_220071_4_.func_216378_a(field_235510_c_, p_220071_3_, true) && p_220071_1_.func_177229_b(field_176367_b) == 0 && p_220071_4_.func_230426_a_(p_220071_2_.func_204610_c(p_220071_3_.func_177984_a()), this.field_204517_c) ? field_235510_c_ : VoxelShapes.func_197880_a(); return p_220071_4_.func_216378_a(field_235510_c_, p_220071_3_, true) && p_220071_1_.func_177229_b(field_176367_b) == 0 && p_220071_4_.func_230426_a_(p_220071_2_.func_204610_c(p_220071_3_.func_177984_a()), this.field_204517_c) ? field_235510_c_ : VoxelShapes.func_197880_a();
} }
@@ -71,6 +85,7 @@ @@ -69,6 +83,7 @@
public FluidState func_204507_t(BlockState p_204507_1_) { public FluidState func_204507_t(BlockState p_204507_1_) {
int i = p_204507_1_.func_177229_b(field_176367_b); int i = p_204507_1_.func_177229_b(field_176367_b);
@ -43,7 +43,7 @@
return this.field_212565_c.get(Math.min(i, 8)); return this.field_212565_c.get(Math.min(i, 8));
} }
@@ -122,13 +137,13 @@ @@ -120,13 +135,13 @@
BlockPos blockpos = p_204515_2_.func_177972_a(direction); BlockPos blockpos = p_204515_2_.func_177972_a(direction);
if (p_204515_1_.func_204610_c(blockpos).func_206884_a(FluidTags.field_206959_a)) { if (p_204515_1_.func_204610_c(blockpos).func_206884_a(FluidTags.field_206959_a)) {
Block block = p_204515_1_.func_204610_c(p_204515_2_).func_206889_d() ? Blocks.field_150343_Z : Blocks.field_150347_e; Block block = p_204515_1_.func_204610_c(p_204515_2_).func_206889_d() ? Blocks.field_150343_Z : Blocks.field_150347_e;
@ -59,9 +59,9 @@
this.func_180688_d(p_204515_1_, p_204515_2_); this.func_180688_d(p_204515_1_, p_204515_2_);
return false; return false;
} }
@@ -166,4 +181,23 @@ @@ -153,4 +168,23 @@
return Fluids.field_204541_a;
} }
} }
+ +
+ // Forge start + // Forge start

View File

@ -1,11 +1,11 @@
--- a/net/minecraft/block/MushroomBlock.java --- a/net/minecraft/block/MushroomBlock.java
+++ b/net/minecraft/block/MushroomBlock.java +++ b/net/minecraft/block/MushroomBlock.java
@@ -63,7 +63,7 @@ @@ -64,7 +64,7 @@
BlockPos blockpos = p_196260_3_.func_177977_b(); if (blockstate.func_235714_a_(BlockTags.field_242171_aD)) {
BlockState blockstate = p_196260_2_.func_180495_p(blockpos); return true;
if (!blockstate.func_203425_a(Blocks.field_150391_bh) && !blockstate.func_203425_a(Blocks.field_196661_l)) { } else {
- return p_196260_2_.func_226659_b_(p_196260_3_, 0) < 13 && this.func_200014_a_(blockstate, p_196260_2_, blockpos); - return p_196260_2_.func_226659_b_(p_196260_3_, 0) < 13 && this.func_200014_a_(blockstate, p_196260_2_, blockpos);
+ return p_196260_2_.func_226659_b_(p_196260_3_, 0) < 13 && blockstate.canSustainPlant(p_196260_2_, blockpos, net.minecraft.util.Direction.UP, this); + return p_196260_2_.func_226659_b_(p_196260_3_, 0) < 13 && blockstate.canSustainPlant(p_196260_2_, blockpos, net.minecraft.util.Direction.UP, this);
} else {
return true;
} }
}

View File

@ -1,47 +0,0 @@
--- a/net/minecraft/block/NetherPortalBlock.java
+++ b/net/minecraft/block/NetherPortalBlock.java
@@ -70,7 +70,7 @@
public static boolean func_176548_d(IWorld p_176548_0_, BlockPos p_176548_1_) {
NetherPortalBlock.Size netherportalblock$size = func_201816_b(p_176548_0_, p_176548_1_);
- if (netherportalblock$size != null) {
+ if (netherportalblock$size != null && !net.minecraftforge.event.ForgeEventFactory.onTrySpawnPortal(p_176548_0_, p_176548_1_, netherportalblock$size)) {
netherportalblock$size.func_150859_c();
return true;
} else {
@@ -241,12 +241,12 @@
int i;
for(i = 0; i < 22; ++i) {
BlockPos blockpos = p_180120_1_.func_177967_a(p_180120_2_, i);
- if (!this.func_196900_a(this.field_150867_a.func_180495_p(blockpos)) || !this.field_150867_a.func_180495_p(blockpos.func_177977_b()).func_203425_a(Blocks.field_150343_Z)) {
+ if (!this.func_196900_a(this.field_150867_a.func_180495_p(blockpos)) || !this.field_150867_a.func_180495_p(blockpos.func_177977_b()).isPortalFrame(field_150867_a, blockpos.func_177977_b())) {
break;
}
}
- return this.field_150867_a.func_180495_p(p_180120_1_.func_177967_a(p_180120_2_, i)).func_203425_a(Blocks.field_150343_Z) ? i : 0;
+ return this.field_150867_a.func_180495_p(p_180120_1_.func_177967_a(p_180120_2_, i)).isPortalFrame(field_150867_a, p_180120_1_.func_177967_a(p_180120_2_, i)) ? i : 0;
}
public int func_181100_a() {
@@ -272,17 +272,17 @@
}
if (i == 0) {
- if (!this.field_150867_a.func_180495_p(blockpos.func_177972_a(this.field_150863_d)).func_203425_a(Blocks.field_150343_Z)) {
+ if (!this.field_150867_a.func_180495_p(blockpos.func_177972_a(this.field_150863_d)).isPortalFrame(field_150867_a, blockpos.func_177972_a(this.field_150863_d))) {
break label56;
}
- } else if (i == this.field_150868_h - 1 && !this.field_150867_a.func_180495_p(blockpos.func_177972_a(this.field_150866_c)).func_203425_a(Blocks.field_150343_Z)) {
+ } else if (i == this.field_150868_h - 1 && !this.field_150867_a.func_180495_p(blockpos.func_177972_a(this.field_150866_c)).isPortalFrame(field_150867_a, blockpos.func_177972_a(this.field_150866_c))) {
break label56;
}
}
}
for(int j = 0; j < this.field_150868_h; ++j) {
- if (!this.field_150867_a.func_180495_p(this.field_150861_f.func_177967_a(this.field_150866_c, j).func_177981_b(this.field_150862_g)).func_203425_a(Blocks.field_150343_Z)) {
+ if (!this.field_150867_a.func_180495_p(this.field_150861_f.func_177967_a(this.field_150866_c, j).func_177981_b(this.field_150862_g)).isPortalFrame(field_150867_a, this.field_150861_f.func_177967_a(this.field_150866_c, j).func_177981_b(this.field_150862_g))) {
this.field_150862_g = 0;
break;
}

View File

@ -2,7 +2,7 @@
+++ b/net/minecraft/block/OreBlock.java +++ b/net/minecraft/block/OreBlock.java
@@ -31,12 +31,10 @@ @@ -31,12 +31,10 @@
public void func_220062_a(BlockState p_220062_1_, World p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) { public void func_220062_a(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) {
super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_); super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_);
- if (EnchantmentHelper.func_77506_a(Enchantments.field_185306_r, p_220062_4_) == 0) { - if (EnchantmentHelper.func_77506_a(Enchantments.field_185306_r, p_220062_4_) == 0) {
- int i = this.func_220281_a(p_220062_2_.field_73012_v); - int i = this.func_220281_a(p_220062_2_.field_73012_v);

View File

@ -24,16 +24,16 @@
return true; return true;
} }
@@ -230,7 +233,7 @@ @@ -234,7 +237,7 @@
return false; return false;
} }
- return !p_185646_0_.func_177230_c().func_235695_q_(); - return !p_185646_0_.func_177230_c().func_235695_q_();
+ return !p_185646_0_.hasTileEntity(); + return !p_185646_0_.hasTileEntity();
} else {
return false;
} }
@@ -271,7 +274,7 @@ } else {
return false;
@@ -273,7 +276,7 @@
for(int k = list2.size() - 1; k >= 0; --k) { for(int k = list2.size() - 1; k >= 0; --k) {
BlockPos blockpos2 = list2.get(k); BlockPos blockpos2 = list2.get(k);
BlockState blockstate1 = p_176319_1_.func_180495_p(blockpos2); BlockState blockstate1 = p_176319_1_.func_180495_p(blockpos2);
@ -42,7 +42,7 @@
func_220059_a(blockstate1, p_176319_1_, blockpos2, tileentity); func_220059_a(blockstate1, p_176319_1_, blockpos2, tileentity);
p_176319_1_.func_180501_a(blockpos2, Blocks.field_150350_a.func_176223_P(), 18); p_176319_1_.func_180501_a(blockpos2, Blocks.field_150350_a.func_176223_P(), 18);
ablockstate[j++] = blockstate1; ablockstate[j++] = blockstate1;
@@ -335,6 +338,10 @@ @@ -337,6 +340,10 @@
return p_185499_1_.func_206870_a(field_176387_N, p_185499_2_.func_185831_a(p_185499_1_.func_177229_b(field_176387_N))); return p_185499_1_.func_206870_a(field_176387_N, p_185499_2_.func_185831_a(p_185499_1_.func_177229_b(field_176387_N)));
} }

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/block/PortalSize.java
+++ b/net/minecraft/block/PortalSize.java
@@ -16,7 +16,7 @@
public class PortalSize {
private static final AbstractBlock.IPositionPredicate field_242962_a = (p_242966_0_, p_242966_1_, p_242966_2_) -> {
- return p_242966_0_.func_203425_a(Blocks.field_150343_Z);
+ return p_242966_0_.isPortalFrame(p_242966_1_, p_242966_2_);
};
private final IWorld field_150867_a;
private final Direction.Axis field_150865_b;

View File

@ -2,7 +2,7 @@
+++ b/net/minecraft/block/RedstoneOreBlock.java +++ b/net/minecraft/block/RedstoneOreBlock.java
@@ -71,11 +71,11 @@ @@ -71,11 +71,11 @@
public void func_220062_a(BlockState p_220062_1_, World p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) { public void func_220062_a(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) {
super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_); super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_);
- if (EnchantmentHelper.func_77506_a(Enchantments.field_185306_r, p_220062_4_) == 0) { - if (EnchantmentHelper.func_77506_a(Enchantments.field_185306_r, p_220062_4_) == 0) {
- int i = 1 + p_220062_2_.field_73012_v.nextInt(5); - int i = 1 + p_220062_2_.field_73012_v.nextInt(5);

View File

@ -2,7 +2,7 @@
+++ b/net/minecraft/block/SpawnerBlock.java +++ b/net/minecraft/block/SpawnerBlock.java
@@ -18,10 +18,13 @@ @@ -18,10 +18,13 @@
public void func_220062_a(BlockState p_220062_1_, World p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) { public void func_220062_a(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) {
super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_); super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_);
- int i = 15 + p_220062_2_.field_73012_v.nextInt(15) + p_220062_2_.field_73012_v.nextInt(15); - int i = 15 + p_220062_2_.field_73012_v.nextInt(15) + p_220062_2_.field_73012_v.nextInt(15);
- this.func_180637_b(p_220062_2_, p_220062_3_, i); - this.func_180637_b(p_220062_2_, p_220062_3_, i);

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/block/VineBlock.java --- a/net/minecraft/block/VineBlock.java
+++ b/net/minecraft/block/VineBlock.java +++ b/net/minecraft/block/VineBlock.java
@@ -19,7 +19,7 @@ @@ -22,7 +22,7 @@
import net.minecraft.world.IWorldReader; import net.minecraft.world.IWorldReader;
import net.minecraft.world.server.ServerWorld; import net.minecraft.world.server.ServerWorld;
@ -9,7 +9,7 @@
public static final BooleanProperty field_176277_a = SixWayBlock.field_196496_z; public static final BooleanProperty field_176277_a = SixWayBlock.field_196496_z;
public static final BooleanProperty field_176273_b = SixWayBlock.field_196488_a; public static final BooleanProperty field_176273_b = SixWayBlock.field_196488_a;
public static final BooleanProperty field_176278_M = SixWayBlock.field_196490_b; public static final BooleanProperty field_176278_M = SixWayBlock.field_196490_b;
@@ -143,14 +143,14 @@ @@ -152,14 +152,14 @@
} }
public void func_225542_b_(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) { public void func_225542_b_(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) {
@ -26,7 +26,7 @@
Direction direction3 = direction.func_176746_e(); Direction direction3 = direction.func_176746_e();
Direction direction4 = direction.func_176735_f(); Direction direction4 = direction.func_176735_f();
boolean flag = p_225542_1_.func_177229_b(func_176267_a(direction3)); boolean flag = p_225542_1_.func_177229_b(func_176267_a(direction3));
@@ -207,7 +207,7 @@ @@ -216,7 +216,7 @@
if (p_225542_3_.func_177956_o() > 0) { if (p_225542_3_.func_177956_o() > 0) {
BlockPos blockpos1 = p_225542_3_.func_177977_b(); BlockPos blockpos1 = p_225542_3_.func_177977_b();
BlockState blockstate = p_225542_2_.func_180495_p(blockpos1); BlockState blockstate = p_225542_2_.func_180495_p(blockpos1);
@ -35,7 +35,7 @@
BlockState blockstate1 = blockstate.func_196958_f() ? this.func_176223_P() : blockstate; BlockState blockstate1 = blockstate.func_196958_f() ? this.func_176223_P() : blockstate;
BlockState blockstate2 = this.func_196544_a(p_225542_1_, blockstate1, p_225542_4_); BlockState blockstate2 = this.func_196544_a(p_225542_1_, blockstate1, p_225542_4_);
if (blockstate1 != blockstate2 && this.func_196540_x(blockstate2)) { if (blockstate1 != blockstate2 && this.func_196540_x(blockstate2)) {
@@ -313,4 +313,7 @@ @@ -322,4 +322,7 @@
public static BooleanProperty func_176267_a(Direction p_176267_0_) { public static BooleanProperty func_176267_a(Direction p_176267_0_) {
return field_196546_A.get(p_176267_0_); return field_196546_A.get(p_176267_0_);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/GameSettings.java --- a/net/minecraft/client/GameSettings.java
+++ b/net/minecraft/client/GameSettings.java +++ b/net/minecraft/client/GameSettings.java
@@ -164,6 +164,7 @@ @@ -167,6 +167,7 @@
public boolean field_241568_aS_; public boolean field_241568_aS_;
public GameSettings(Minecraft p_i46326_1_, File p_i46326_2_) { public GameSettings(Minecraft p_i46326_1_, File p_i46326_2_) {
@ -8,7 +8,7 @@
this.field_74317_L = p_i46326_1_; this.field_74317_L = p_i46326_1_;
this.field_74354_ai = new File(p_i46326_2_, "options.txt"); this.field_74354_ai = new File(p_i46326_2_, "options.txt");
if (p_i46326_1_.func_147111_S() && Runtime.getRuntime().maxMemory() >= 1000000000L) { if (p_i46326_1_.func_147111_S() && Runtime.getRuntime().maxMemory() >= 1000000000L) {
@@ -507,7 +508,11 @@ @@ -518,7 +519,11 @@
for(KeyBinding keybinding : this.field_74324_K) { for(KeyBinding keybinding : this.field_74324_K) {
if (s.equals("key_" + keybinding.func_151464_g())) { if (s.equals("key_" + keybinding.func_151464_g())) {
@ -21,7 +21,7 @@
} }
} }
@@ -554,6 +559,7 @@ @@ -565,6 +570,7 @@
} }
public void func_74303_b() { public void func_74303_b() {
@ -29,7 +29,7 @@
try (PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(new FileOutputStream(this.field_74354_ai), StandardCharsets.UTF_8))) { try (PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(new FileOutputStream(this.field_74354_ai), StandardCharsets.UTF_8))) {
printwriter.println("version:" + SharedConstants.func_215069_a().getWorldVersion()); printwriter.println("version:" + SharedConstants.func_215069_a().getWorldVersion());
printwriter.println("autoJump:" + AbstractOption.field_216719_z.func_216741_b(this)); printwriter.println("autoJump:" + AbstractOption.field_216719_z.func_216741_b(this));
@@ -635,7 +641,7 @@ @@ -648,7 +654,7 @@
printwriter.println("syncChunkWrites:" + this.field_241568_aS_); printwriter.println("syncChunkWrites:" + this.field_241568_aS_);
for(KeyBinding keybinding : this.field_74324_K) { for(KeyBinding keybinding : this.field_74324_K) {
@ -38,11 +38,10 @@
} }
for(SoundCategory soundcategory : SoundCategory.values()) { for(SoundCategory soundcategory : SoundCategory.values()) {
@@ -733,4 +739,21 @@ @@ -747,6 +753,23 @@
p_198017_1_.func_198985_a(set); p_198017_1_.func_198985_a(set);
} }
+
+ private void setForgeKeybindProperties() { + private void setForgeKeybindProperties() {
+ net.minecraftforge.client.settings.KeyConflictContext inGame = net.minecraftforge.client.settings.KeyConflictContext.IN_GAME; + net.minecraftforge.client.settings.KeyConflictContext inGame = net.minecraftforge.client.settings.KeyConflictContext.IN_GAME;
+ field_74351_w.setKeyConflictContext(inGame); + field_74351_w.setKeyConflictContext(inGame);
@ -59,4 +58,7 @@
+ field_151457_aa.setKeyConflictContext(inGame); + field_151457_aa.setKeyConflictContext(inGame);
+ field_151458_ab.setKeyConflictContext(inGame); + field_151458_ab.setKeyConflictContext(inGame);
+ } + }
} +
public PointOfView func_243230_g() {
return this.field_243228_bb;
}

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/KeyboardListener.java --- a/net/minecraft/client/KeyboardListener.java
+++ b/net/minecraft/client/KeyboardListener.java +++ b/net/minecraft/client/KeyboardListener.java
@@ -256,7 +256,9 @@ @@ -255,7 +255,9 @@
} }
INestedGuiEventHandler inestedguieventhandler = this.field_197972_a.field_71462_r; INestedGuiEventHandler inestedguieventhandler = this.field_197972_a.field_71462_r;
@ -11,7 +11,7 @@
if (this.field_197972_a.field_71474_y.field_152395_am.func_197976_a(p_197961_3_, p_197961_4_)) { if (this.field_197972_a.field_71474_y.field_152395_am.func_197976_a(p_197961_3_, p_197961_4_)) {
this.field_197972_a.func_228018_at_().func_198077_g(); this.field_197972_a.func_228018_at_().func_198077_g();
this.field_197972_a.field_71474_y.field_74353_u = this.field_197972_a.func_228018_at_().func_198113_j(); this.field_197972_a.field_71474_y.field_74353_u = this.field_197972_a.func_228018_at_().func_198113_j();
@@ -275,6 +277,8 @@ @@ -274,6 +276,8 @@
}); });
return; return;
} }
@ -20,7 +20,7 @@
} }
boolean flag = inestedguieventhandler == null || !(inestedguieventhandler.func_241217_q_() instanceof TextFieldWidget) || !((TextFieldWidget)inestedguieventhandler.func_241217_q_()).func_212955_f(); boolean flag = inestedguieventhandler == null || !(inestedguieventhandler.func_241217_q_() instanceof TextFieldWidget) || !((TextFieldWidget)inestedguieventhandler.func_241217_q_()).func_212955_f();
@@ -294,10 +298,14 @@ @@ -289,10 +293,14 @@
Screen.func_231153_a_(() -> { Screen.func_231153_a_(() -> {
if (p_197961_5_ != 1 && (p_197961_5_ != 2 || !this.field_197973_b)) { if (p_197961_5_ != 1 && (p_197961_5_ != 2 || !this.field_197973_b)) {
if (p_197961_5_ == 0) { if (p_197961_5_ == 0) {
@ -37,7 +37,7 @@
} }
}, "keyPressed event handler", inestedguieventhandler.getClass().getCanonicalName()); }, "keyPressed event handler", inestedguieventhandler.getClass().getCanonicalName());
@@ -350,7 +358,7 @@ @@ -345,7 +353,7 @@
} }
} }
} }
@ -46,7 +46,7 @@
} }
} }
@@ -360,12 +368,16 @@ @@ -355,12 +363,16 @@
if (iguieventlistener != null && this.field_197972_a.func_213250_au() == null) { if (iguieventlistener != null && this.field_197972_a.func_213250_au() == null) {
if (Character.charCount(p_197963_3_) == 1) { if (Character.charCount(p_197963_3_) == 1) {
Screen.func_231153_a_(() -> { Screen.func_231153_a_(() -> {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/Minecraft.java --- a/net/minecraft/client/Minecraft.java
+++ b/net/minecraft/client/Minecraft.java +++ b/net/minecraft/client/Minecraft.java
@@ -358,6 +358,7 @@ @@ -357,6 +357,7 @@
public Minecraft(GameConfiguration p_i45547_1_) { public Minecraft(GameConfiguration p_i45547_1_) {
super("Client"); super("Client");
field_71432_P = this; field_71432_P = this;
@ -8,7 +8,7 @@
this.field_71412_D = p_i45547_1_.field_178744_c.field_178760_a; this.field_71412_D = p_i45547_1_.field_178744_c.field_178760_a;
File file1 = p_i45547_1_.field_178744_c.field_178759_c; File file1 = p_i45547_1_.field_178744_c.field_178759_c;
this.field_130070_K = p_i45547_1_.field_178744_c.field_178758_b; this.field_130070_K = p_i45547_1_.field_178744_c.field_178758_b;
@@ -370,7 +371,6 @@ @@ -369,7 +370,6 @@
this.field_152355_az = (new YggdrasilAuthenticationService(this.field_110453_aa, UUID.randomUUID().toString())).createMinecraftSessionService(); this.field_152355_az = (new YggdrasilAuthenticationService(this.field_110453_aa, UUID.randomUUID().toString())).createMinecraftSessionService();
this.field_71449_j = p_i45547_1_.field_178745_a.field_178752_a; this.field_71449_j = p_i45547_1_.field_178745_a.field_178752_a;
field_147123_G.info("Setting user: {}", (Object)this.field_71449_j.func_111285_a()); field_147123_G.info("Setting user: {}", (Object)this.field_71449_j.func_111285_a());
@ -16,7 +16,7 @@
this.field_71459_aj = p_i45547_1_.field_178741_d.field_178756_a; this.field_71459_aj = p_i45547_1_.field_178741_d.field_178756_a;
this.field_238175_ae_ = !p_i45547_1_.field_178741_d.field_239099_d_; this.field_238175_ae_ = !p_i45547_1_.field_178741_d.field_239099_d_;
this.field_238176_af_ = !p_i45547_1_.field_178741_d.field_239100_e_; this.field_238176_af_ = !p_i45547_1_.field_178741_d.field_239100_e_;
@@ -416,14 +416,15 @@ @@ -415,14 +415,15 @@
this.field_195558_d.func_216526_a(this.field_71474_y.field_74350_i); this.field_195558_d.func_216526_a(this.field_71474_y.field_74350_i);
this.field_71417_B = new MouseHelper(this); this.field_71417_B = new MouseHelper(this);
@ -33,7 +33,7 @@
this.field_71474_y.func_198017_a(this.field_110448_aq); this.field_71474_y.func_198017_a(this.field_110448_aq);
this.field_135017_as = new LanguageManager(this.field_71474_y.field_74363_ab); this.field_135017_as = new LanguageManager(this.field_71474_y.field_74363_ab);
this.field_110451_am.func_219534_a(this.field_135017_as); this.field_110451_am.func_219534_a(this.field_135017_as);
@@ -463,6 +464,7 @@ @@ -462,6 +463,7 @@
this.func_193986_ar(); this.func_193986_ar();
this.field_110451_am.func_219534_a(this.field_193995_ae); this.field_110451_am.func_219534_a(this.field_193995_ae);
this.field_71452_i = new ParticleManager(this.field_71441_e, this.field_71446_o); this.field_71452_i = new ParticleManager(this.field_71441_e, this.field_71446_o);
@ -41,7 +41,7 @@
this.field_110451_am.func_219534_a(this.field_71452_i); this.field_110451_am.func_219534_a(this.field_71452_i);
this.field_213272_aL = new PaintingSpriteUploader(this.field_71446_o); this.field_213272_aL = new PaintingSpriteUploader(this.field_71446_o);
this.field_110451_am.func_219534_a(this.field_213272_aL); this.field_110451_am.func_219534_a(this.field_213272_aL);
@@ -470,7 +472,8 @@ @@ -469,7 +471,8 @@
this.field_110451_am.func_219534_a(this.field_213273_aM); this.field_110451_am.func_219534_a(this.field_213273_aM);
this.field_241557_ar_ = new GPUWarning(); this.field_241557_ar_ = new GPUWarning();
this.field_110451_am.func_219534_a(this.field_241557_ar_); this.field_110451_am.func_219534_a(this.field_241557_ar_);
@ -51,7 +51,7 @@
this.field_184132_p = new DebugRenderer(this); this.field_184132_p = new DebugRenderer(this);
RenderSystem.setErrorCallback(this::func_195545_a); RenderSystem.setErrorCallback(this::func_195545_a);
if (this.field_71474_y.field_74353_u && !this.field_195558_d.func_198113_j()) { if (this.field_71474_y.field_74353_u && !this.field_195558_d.func_198113_j()) {
@@ -482,11 +485,6 @@ @@ -481,11 +484,6 @@
this.field_195558_d.func_224798_d(this.field_71474_y.field_225307_E); this.field_195558_d.func_224798_d(this.field_71474_y.field_225307_E);
this.field_195558_d.func_227801_c_(); this.field_195558_d.func_227801_c_();
this.func_213226_a(); this.func_213226_a();
@ -63,7 +63,7 @@
ResourceLoadProgressGui.func_212970_a(this); ResourceLoadProgressGui.func_212970_a(this);
List<IResourcePack> list = this.field_110448_aq.func_232623_f_(); List<IResourcePack> list = this.field_110448_aq.func_232623_f_();
@@ -495,7 +493,14 @@ @@ -494,7 +492,14 @@
if (SharedConstants.field_206244_b) { if (SharedConstants.field_206244_b) {
this.func_213256_aB(); this.func_213256_aB();
} }
@ -79,7 +79,7 @@
}); });
}, false)); }, false));
} }
@@ -534,7 +539,7 @@ @@ -533,7 +538,7 @@
} }
private void func_229988_a_(Throwable p_229988_1_) { private void func_229988_a_(Throwable p_229988_1_) {
@ -88,7 +88,7 @@
ITextComponent itextcomponent; ITextComponent itextcomponent;
if (p_229988_1_ instanceof SimpleReloadableResourceManager.FailedPackException) { if (p_229988_1_ instanceof SimpleReloadableResourceManager.FailedPackException) {
itextcomponent = new StringTextComponent(((SimpleReloadableResourceManager.FailedPackException)p_229988_1_).func_241203_a().func_195762_a()); itextcomponent = new StringTextComponent(((SimpleReloadableResourceManager.FailedPackException)p_229988_1_).func_241203_a().func_195762_a());
@@ -618,7 +623,7 @@ @@ -621,7 +626,7 @@
return Stream.of(Registry.field_212630_s.func_177774_c(p_213251_0_.func_77973_b())); return Stream.of(Registry.field_212630_s.func_177774_c(p_213251_0_.func_77973_b()));
}); });
SearchTreeReloadable<ItemStack> searchtreereloadable = new SearchTreeReloadable<>((p_213235_0_) -> { SearchTreeReloadable<ItemStack> searchtreereloadable = new SearchTreeReloadable<>((p_213235_0_) -> {
@ -97,7 +97,7 @@
}); });
NonNullList<ItemStack> nonnulllist = NonNullList.func_191196_a(); NonNullList<ItemStack> nonnulllist = NonNullList.func_191196_a();
@@ -688,13 +693,13 @@ @@ -691,13 +696,13 @@
Bootstrap.func_179870_a(p_71377_0_.func_71502_e()); Bootstrap.func_179870_a(p_71377_0_.func_71502_e());
if (p_71377_0_.func_71497_f() != null) { if (p_71377_0_.func_71497_f() != null) {
Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + p_71377_0_.func_71497_f()); Bootstrap.func_179870_a("#@!@# Game crashed! Crash report saved to: #@!@# " + p_71377_0_.func_71497_f());
@ -114,7 +114,7 @@
} }
} }
@@ -703,6 +708,7 @@ @@ -706,6 +711,7 @@
return this.field_71474_y.field_211842_aO; return this.field_71474_y.field_211842_aO;
} }
@ -122,7 +122,7 @@
public CompletableFuture<Void> func_213237_g() { public CompletableFuture<Void> func_213237_g() {
if (this.field_213276_aV != null) { if (this.field_213276_aV != null) {
return this.field_213276_aV; return this.field_213276_aV;
@@ -791,10 +797,6 @@ @@ -794,10 +800,6 @@
} }
public void func_147108_a(@Nullable Screen p_147108_1_) { public void func_147108_a(@Nullable Screen p_147108_1_) {
@ -133,7 +133,7 @@
if (p_147108_1_ == null && this.field_71441_e == null) { if (p_147108_1_ == null && this.field_71441_e == null) {
p_147108_1_ = new MainMenuScreen(); p_147108_1_ = new MainMenuScreen();
} else if (p_147108_1_ == null && this.field_71439_g.func_233643_dh_()) { } else if (p_147108_1_ == null && this.field_71439_g.func_233643_dh_()) {
@@ -805,6 +807,14 @@ @@ -808,6 +810,14 @@
} }
} }
@ -148,7 +148,7 @@
if (p_147108_1_ instanceof MainMenuScreen || p_147108_1_ instanceof MultiplayerScreen) { if (p_147108_1_ instanceof MainMenuScreen || p_147108_1_ instanceof MultiplayerScreen) {
this.field_71474_y.field_74330_P = false; this.field_71474_y.field_74330_P = false;
this.field_71456_v.func_146158_b().func_146231_a(true); this.field_71456_v.func_146158_b().func_146231_a(true);
@@ -936,11 +946,13 @@ @@ -939,11 +949,13 @@
RenderSystem.enableCull(); RenderSystem.enableCull();
this.field_71424_I.func_76319_b(); this.field_71424_I.func_76319_b();
if (!this.field_71454_w) { if (!this.field_71454_w) {
@ -162,16 +162,15 @@
} }
if (this.field_238174_aV_ != null) { if (this.field_238174_aV_ != null) {
@@ -1039,7 +1051,7 @@ @@ -1042,6 +1054,7 @@
Framebuffer framebuffer = this.func_147110_a(); Framebuffer framebuffer = this.func_147110_a();
framebuffer.func_216491_a(this.field_195558_d.func_198109_k(), this.field_195558_d.func_198091_l(), field_142025_a); framebuffer.func_216491_a(this.field_195558_d.func_198109_k(), this.field_195558_d.func_198091_l(), field_142025_a);
- this.field_71460_t.func_147704_a(this.field_195558_d.func_198109_k(), this.field_195558_d.func_198091_l()); + if (this.field_71460_t != null)
+ if (this.field_71460_t!=null) this.field_71460_t.func_147704_a(this.field_195558_d.func_198109_k(), this.field_195558_d.func_198091_l()); this.field_71460_t.func_147704_a(this.field_195558_d.func_198109_k(), this.field_195558_d.func_198091_l());
this.field_71417_B.func_198021_g(); this.field_71417_B.func_198021_g();
} }
@@ -1230,11 +1243,21 @@
@@ -1227,11 +1239,21 @@
if (p_147115_1_ && this.field_71476_x != null && this.field_71476_x.func_216346_c() == RayTraceResult.Type.BLOCK) { if (p_147115_1_ && this.field_71476_x != null && this.field_71476_x.func_216346_c() == RayTraceResult.Type.BLOCK) {
BlockRayTraceResult blockraytraceresult = (BlockRayTraceResult)this.field_71476_x; BlockRayTraceResult blockraytraceresult = (BlockRayTraceResult)this.field_71476_x;
BlockPos blockpos = blockraytraceresult.func_216350_a(); BlockPos blockpos = blockraytraceresult.func_216350_a();
@ -195,7 +194,7 @@
} }
} }
@@ -1250,6 +1272,8 @@ @@ -1253,6 +1276,8 @@
} }
} else if (!this.field_71439_g.func_184838_M()) { } else if (!this.field_71439_g.func_184838_M()) {
@ -204,7 +203,7 @@
switch(this.field_71476_x.func_216346_c()) { switch(this.field_71476_x.func_216346_c()) {
case ENTITY: case ENTITY:
this.field_71442_b.func_78764_a(this.field_71439_g, ((EntityRayTraceResult)this.field_71476_x).func_216348_a()); this.field_71442_b.func_78764_a(this.field_71439_g, ((EntityRayTraceResult)this.field_71476_x).func_216348_a());
@@ -1257,7 +1281,7 @@ @@ -1260,7 +1285,7 @@
case BLOCK: case BLOCK:
BlockRayTraceResult blockraytraceresult = (BlockRayTraceResult)this.field_71476_x; BlockRayTraceResult blockraytraceresult = (BlockRayTraceResult)this.field_71476_x;
BlockPos blockpos = blockraytraceresult.func_216350_a(); BlockPos blockpos = blockraytraceresult.func_216350_a();
@ -213,7 +212,7 @@
this.field_71442_b.func_180511_b(blockpos, blockraytraceresult.func_216354_b()); this.field_71442_b.func_180511_b(blockpos, blockraytraceresult.func_216354_b());
break; break;
} }
@@ -1267,8 +1291,10 @@ @@ -1270,8 +1295,10 @@
} }
this.field_71439_g.func_184821_cY(); this.field_71439_g.func_184821_cY();
@ -224,7 +223,7 @@
this.field_71439_g.func_184609_a(Hand.MAIN_HAND); this.field_71439_g.func_184609_a(Hand.MAIN_HAND);
} }
} }
@@ -1283,6 +1309,11 @@ @@ -1286,6 +1313,11 @@
} }
for(Hand hand : Hand.values()) { for(Hand hand : Hand.values()) {
@ -236,7 +235,7 @@
ItemStack itemstack = this.field_71439_g.func_184586_b(hand); ItemStack itemstack = this.field_71439_g.func_184586_b(hand);
if (this.field_71476_x != null) { if (this.field_71476_x != null) {
switch(this.field_71476_x.func_216346_c()) { switch(this.field_71476_x.func_216346_c()) {
@@ -1296,6 +1327,7 @@ @@ -1299,6 +1331,7 @@
if (actionresulttype.func_226246_a_()) { if (actionresulttype.func_226246_a_()) {
if (actionresulttype.func_226247_b_()) { if (actionresulttype.func_226247_b_()) {
@ -244,7 +243,7 @@
this.field_71439_g.func_184609_a(hand); this.field_71439_g.func_184609_a(hand);
} }
@@ -1308,6 +1340,7 @@ @@ -1311,6 +1344,7 @@
ActionResultType actionresulttype1 = this.field_71442_b.func_217292_a(this.field_71439_g, this.field_71441_e, hand, blockraytraceresult); ActionResultType actionresulttype1 = this.field_71442_b.func_217292_a(this.field_71439_g, this.field_71441_e, hand, blockraytraceresult);
if (actionresulttype1.func_226246_a_()) { if (actionresulttype1.func_226246_a_()) {
if (actionresulttype1.func_226247_b_()) { if (actionresulttype1.func_226247_b_()) {
@ -252,7 +251,7 @@
this.field_71439_g.func_184609_a(hand); this.field_71439_g.func_184609_a(hand);
if (!itemstack.func_190926_b() && (itemstack.func_190916_E() != i || this.field_71442_b.func_78758_h())) { if (!itemstack.func_190926_b() && (itemstack.func_190916_E() != i || this.field_71442_b.func_78758_h())) {
this.field_71460_t.field_78516_c.func_187460_a(hand); this.field_71460_t.field_78516_c.func_187460_a(hand);
@@ -1323,6 +1356,9 @@ @@ -1326,6 +1360,9 @@
} }
} }
@ -262,7 +261,7 @@
if (!itemstack.func_190926_b()) { if (!itemstack.func_190926_b()) {
ActionResultType actionresulttype2 = this.field_71442_b.func_187101_a(this.field_71439_g, this.field_71441_e, hand); ActionResultType actionresulttype2 = this.field_71442_b.func_187101_a(this.field_71439_g, this.field_71441_e, hand);
if (actionresulttype2.func_226246_a_()) { if (actionresulttype2.func_226246_a_()) {
@@ -1349,6 +1385,8 @@ @@ -1352,6 +1389,8 @@
--this.field_71467_ac; --this.field_71467_ac;
} }
@ -271,7 +270,7 @@
this.field_71424_I.func_76320_a("gui"); this.field_71424_I.func_76320_a("gui");
if (!this.field_71445_n) { if (!this.field_71445_n) {
this.field_71456_v.func_73831_a(); this.field_71456_v.func_73831_a();
@@ -1465,6 +1503,8 @@ @@ -1468,6 +1507,8 @@
this.field_71424_I.func_219895_b("keyboard"); this.field_71424_I.func_219895_b("keyboard");
this.field_195559_v.func_204870_b(); this.field_195559_v.func_204870_b();
this.field_71424_I.func_76319_b(); this.field_71424_I.func_76319_b();
@ -280,7 +279,7 @@
} }
private void func_184117_aA() { private void func_184117_aA() {
@@ -1696,7 +1736,12 @@ @@ -1697,7 +1738,12 @@
networkmanager.func_150719_a(new ClientLoginNetHandler(networkmanager, this, (Screen)null, (p_229998_0_) -> { networkmanager.func_150719_a(new ClientLoginNetHandler(networkmanager, this, (Screen)null, (p_229998_0_) -> {
})); }));
networkmanager.func_179290_a(new CHandshakePacket(socketaddress.toString(), 0, ProtocolType.LOGIN)); networkmanager.func_179290_a(new CHandshakePacket(socketaddress.toString(), 0, ProtocolType.LOGIN));
@ -294,7 +293,7 @@
this.field_71453_ak = networkmanager; this.field_71453_ak = networkmanager;
} else { } else {
this.func_241559_a_(p_238195_6_, p_238195_1_, flag, () -> { this.func_241559_a_(p_238195_6_, p_238195_1_, flag, () -> {
@@ -1770,6 +1815,7 @@ @@ -1771,6 +1817,7 @@
} }
public void func_71403_a(ClientWorld p_71403_1_) { public void func_71403_a(ClientWorld p_71403_1_) {
@ -302,7 +301,7 @@
WorkingScreen workingscreen = new WorkingScreen(); WorkingScreen workingscreen = new WorkingScreen();
workingscreen.func_200210_a(new TranslationTextComponent("connect.joining")); workingscreen.func_200210_a(new TranslationTextComponent("connect.joining"));
this.func_213241_c(workingscreen); this.func_213241_c(workingscreen);
@@ -1801,10 +1847,12 @@ @@ -1802,10 +1849,12 @@
IntegratedServer integratedserver = this.field_71437_Z; IntegratedServer integratedserver = this.field_71437_Z;
this.field_71437_Z = null; this.field_71437_Z = null;
this.field_71460_t.func_190564_k(); this.field_71460_t.func_190564_k();
@ -315,7 +314,7 @@
if (integratedserver != null) { if (integratedserver != null) {
this.field_71424_I.func_76320_a("waitForServer"); this.field_71424_I.func_76320_a("waitForServer");
@@ -1819,6 +1867,7 @@ @@ -1820,6 +1869,7 @@
this.field_71456_v.func_181029_i(); this.field_71456_v.func_181029_i();
this.field_71422_O = null; this.field_71422_O = null;
this.field_71455_al = false; this.field_71455_al = false;
@ -323,7 +322,7 @@
this.field_213274_aO.func_216815_b(); this.field_213274_aO.func_216815_b();
} }
@@ -1849,6 +1898,7 @@ @@ -1850,6 +1900,7 @@
this.field_71452_i.func_78870_a(p_213257_1_); this.field_71452_i.func_78870_a(p_213257_1_);
TileEntityRendererDispatcher.field_147556_a.func_147543_a(p_213257_1_); TileEntityRendererDispatcher.field_147556_a.func_147543_a(p_213257_1_);
this.func_230150_b_(); this.func_230150_b_();
@ -331,7 +330,7 @@
} }
public boolean func_238216_r_() { public boolean func_238216_r_() {
@@ -1894,112 +1944,9 @@ @@ -1895,112 +1946,9 @@
private void func_147112_ai() { private void func_147112_ai() {
if (this.field_71476_x != null && this.field_71476_x.func_216346_c() != RayTraceResult.Type.MISS) { if (this.field_71476_x != null && this.field_71476_x.func_216346_c() != RayTraceResult.Type.MISS) {
@ -447,7 +446,7 @@
} }
} }
@@ -2081,6 +2028,7 @@ @@ -2090,6 +2038,7 @@
return field_71432_P; return field_71432_P;
} }
@ -455,16 +454,16 @@
public CompletableFuture<Void> func_213245_w() { public CompletableFuture<Void> func_213245_w() {
return this.func_213169_a(this::func_213237_g).thenCompose((p_229993_0_) -> { return this.func_213169_a(this::func_213237_g).thenCompose((p_229993_0_) -> {
return p_229993_0_; return p_229993_0_;
@@ -2388,7 +2336,7 @@ @@ -2397,7 +2346,7 @@
supplier = func_228022_c_(supplier); supplier = func_228022_c_(supplier);
} }
- return new ClientResourcePackInfo(p_228011_0_, p_228011_1_, supplier, p_228011_3_, p_228011_4_, p_228011_5_, p_228011_6_); - return new ResourcePackInfo(p_228011_0_, p_228011_1_, supplier, p_228011_3_, p_228011_4_, p_228011_5_, p_228011_6_);
+ return new ClientResourcePackInfo(p_228011_0_, p_228011_1_, supplier, p_228011_3_, p_228011_4_, p_228011_5_, p_228011_6_, p_228011_3_.isHidden()); + return new ResourcePackInfo(p_228011_0_, p_228011_1_, supplier, p_228011_3_, p_228011_4_, p_228011_5_, p_228011_6_, p_228011_3_.isHidden());
} }
private static Supplier<IResourcePack> func_228021_b_(Supplier<IResourcePack> p_228021_0_) { private static Supplier<IResourcePack> func_228021_b_(Supplier<IResourcePack> p_228021_0_) {
@@ -2407,6 +2355,14 @@ @@ -2416,6 +2365,14 @@
this.field_175617_aL.func_229355_a_(p_228020_1_); this.field_175617_aL.func_229355_a_(p_228020_1_);
} }
@ -478,4 +477,4 @@
+ +
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public static final class PackManager implements AutoCloseable { public static final class PackManager implements AutoCloseable {
private final ResourcePackList<ResourcePackInfo> field_238221_a_; private final ResourcePackList field_238221_a_;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/entity/player/AbstractClientPlayerEntity.java --- a/net/minecraft/client/entity/player/AbstractClientPlayerEntity.java
+++ b/net/minecraft/client/entity/player/AbstractClientPlayerEntity.java +++ b/net/minecraft/client/entity/player/AbstractClientPlayerEntity.java
@@ -113,7 +113,7 @@ @@ -114,7 +114,7 @@
f = 1.0F; f = 1.0F;
} }
@ -9,11 +9,11 @@
int i = this.func_184612_cw(); int i = this.func_184612_cw();
float f1 = (float)i / 20.0F; float f1 = (float)i / 20.0F;
if (f1 > 1.0F) { if (f1 > 1.0F) {
@@ -125,6 +125,6 @@ @@ -126,6 +126,6 @@
f *= 1.0F - f1 * 0.15F; f *= 1.0F - f1 * 0.15F;
} }
- return f; - return MathHelper.func_219799_g(Minecraft.func_71410_x().field_71474_y.field_243227_aN, 1.0F, f);
+ return net.minecraftforge.client.ForgeHooksClient.getOffsetFOV(this, f); + return net.minecraftforge.client.ForgeHooksClient.getOffsetFOV(this, f);
} }
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/entity/player/ClientPlayerEntity.java --- a/net/minecraft/client/entity/player/ClientPlayerEntity.java
+++ b/net/minecraft/client/entity/player/ClientPlayerEntity.java +++ b/net/minecraft/client/entity/player/ClientPlayerEntity.java
@@ -133,6 +133,7 @@ @@ -134,6 +134,7 @@
} }
public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) { public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) {
@ -8,7 +8,7 @@
return false; return false;
} }
@@ -479,6 +480,11 @@ @@ -457,6 +458,11 @@
} }
public void func_184185_a(SoundEvent p_184185_1_, float p_184185_2_, float p_184185_3_) { public void func_184185_a(SoundEvent p_184185_1_, float p_184185_2_, float p_184185_3_) {
@ -20,7 +20,7 @@
this.field_70170_p.func_184134_a(this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), p_184185_1_, this.func_184176_by(), p_184185_2_, p_184185_3_, false); this.field_70170_p.func_184134_a(this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), p_184185_1_, this.func_184176_by(), p_184185_2_, p_184185_3_, false);
} }
@@ -617,6 +623,7 @@ @@ -595,6 +601,7 @@
boolean flag2 = this.func_223110_ee(); boolean flag2 = this.func_223110_ee();
this.field_239203_ch_ = !this.field_71075_bZ.field_75100_b && !this.func_203007_ba() && this.func_213298_c(Pose.CROUCHING) && (this.func_225608_bj_() || !this.func_70608_bn() && !this.func_213298_c(Pose.STANDING)); this.field_239203_ch_ = !this.field_71075_bZ.field_75100_b && !this.func_203007_ba() && this.func_213298_c(Pose.CROUCHING) && (this.func_225608_bj_() || !this.func_70608_bn() && !this.func_213298_c(Pose.STANDING));
this.field_71158_b.func_225607_a_(this.func_228354_I_()); this.field_71158_b.func_225607_a_(this.func_228354_I_());
@ -28,25 +28,7 @@
this.field_71159_c.func_193032_ao().func_193293_a(this.field_71158_b); this.field_71159_c.func_193032_ao().func_193293_a(this.field_71158_b);
if (this.func_184587_cr() && !this.func_184218_aH()) { if (this.func_184587_cr() && !this.func_184218_aH()) {
this.field_71158_b.field_78902_a *= 0.2F; this.field_71158_b.field_78902_a *= 0.2F;
@@ -631,11 +638,12 @@ @@ -667,7 +674,7 @@
this.field_71158_b.field_78901_c = true;
}
- if (!this.field_70145_X) {
- this.func_213282_i(this.func_226277_ct_() - (double)this.func_213311_cf() * 0.35D, this.func_226278_cu_() + 0.5D, this.func_226281_cx_() + (double)this.func_213311_cf() * 0.35D);
- this.func_213282_i(this.func_226277_ct_() - (double)this.func_213311_cf() * 0.35D, this.func_226278_cu_() + 0.5D, this.func_226281_cx_() - (double)this.func_213311_cf() * 0.35D);
- this.func_213282_i(this.func_226277_ct_() + (double)this.func_213311_cf() * 0.35D, this.func_226278_cu_() + 0.5D, this.func_226281_cx_() - (double)this.func_213311_cf() * 0.35D);
- this.func_213282_i(this.func_226277_ct_() + (double)this.func_213311_cf() * 0.35D, this.func_226278_cu_() + 0.5D, this.func_226281_cx_() + (double)this.func_213311_cf() * 0.35D);
+ net.minecraftforge.client.event.PlayerSPPushOutOfBlocksEvent event = new net.minecraftforge.client.event.PlayerSPPushOutOfBlocksEvent(this);
+ if (!this.field_70145_X && !net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) {
+ this.func_213282_i(this.func_226277_ct_() - (double)this.func_213311_cf() * 0.35D, event.getMinY(), this.func_226281_cx_() + (double)this.func_213311_cf() * 0.35D);
+ this.func_213282_i(this.func_226277_ct_() - (double)this.func_213311_cf() * 0.35D, event.getMinY(), this.func_226281_cx_() - (double)this.func_213311_cf() * 0.35D);
+ this.func_213282_i(this.func_226277_ct_() + (double)this.func_213311_cf() * 0.35D, event.getMinY(), this.func_226281_cx_() - (double)this.func_213311_cf() * 0.35D);
+ this.func_213282_i(this.func_226277_ct_() + (double)this.func_213311_cf() * 0.35D, event.getMinY(), this.func_226281_cx_() + (double)this.func_213311_cf() * 0.35D);
}
if (flag1) {
@@ -689,7 +697,7 @@
if (this.field_71158_b.field_78901_c && !flag7 && !flag && !this.field_71075_bZ.field_75100_b && !this.func_184218_aH() && !this.func_70617_f_()) { if (this.field_71158_b.field_78901_c && !flag7 && !flag && !this.field_71075_bZ.field_75100_b && !this.func_184218_aH() && !this.func_70617_f_()) {
ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST); ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST);
@ -55,8 +37,8 @@
this.field_71174_a.func_147297_a(new CEntityActionPacket(this, CEntityActionPacket.Action.START_FALL_FLYING)); this.field_71174_a.func_147297_a(new CEntityActionPacket(this, CEntityActionPacket.Action.START_FALL_FLYING));
} }
} }
@@ -985,4 +993,16 @@ @@ -975,4 +982,16 @@
return this.field_204230_bP; return super.func_241843_o(p_241843_1_);
} }
} }
+ +

View File

@ -1,6 +1,15 @@
--- a/net/minecraft/client/gui/IngameGui.java --- a/net/minecraft/client/gui/IngameGui.java
+++ b/net/minecraft/client/gui/IngameGui.java +++ b/net/minecraft/client/gui/IngameGui.java
@@ -416,6 +416,9 @@ @@ -78,7 +78,7 @@
protected static final ResourceLocation field_110329_b = new ResourceLocation("textures/misc/vignette.png");
protected static final ResourceLocation field_110330_c = new ResourceLocation("textures/gui/widgets.png");
protected static final ResourceLocation field_110328_d = new ResourceLocation("textures/misc/pumpkinblur.png");
- protected static final ITextComponent field_243249_e = new TranslationTextComponent("demo.demoExpired");
+ private static final ITextComponent field_243249_e = new TranslationTextComponent("demo.demoExpired");
protected final Random field_73842_c = new Random();
protected final Minecraft field_73839_d;
protected final ItemRenderer field_73841_b;
@@ -414,6 +414,9 @@
for(EffectInstance effectinstance : Ordering.natural().reverse().sortedCopy(collection)) { for(EffectInstance effectinstance : Ordering.natural().reverse().sortedCopy(collection)) {
Effect effect = effectinstance.func_188419_a(); Effect effect = effectinstance.func_188419_a();
@ -10,7 +19,7 @@
if (effectinstance.func_205348_f()) { if (effectinstance.func_205348_f()) {
int k = this.field_194811_H; int k = this.field_194811_H;
int l = 1; int l = 1;
@@ -453,6 +456,7 @@ @@ -451,6 +454,7 @@
RenderSystem.color4f(1.0F, 1.0F, 1.0F, f1); RenderSystem.color4f(1.0F, 1.0F, 1.0F, f1);
func_238470_a_(p_238444_1_, j1 + 3, k1 + 3, this.func_230927_p_(), 18, 18, textureatlassprite); func_238470_a_(p_238444_1_, j1 + 3, k1 + 3, this.func_230927_p_(), 18, 18, textureatlassprite);
}); });
@ -18,7 +27,7 @@
} }
} }
@@ -577,7 +581,8 @@ @@ -575,7 +579,8 @@
iformattabletextcomponent.func_240699_a_(TextFormatting.ITALIC); iformattabletextcomponent.func_240699_a_(TextFormatting.ITALIC);
} }
@ -28,22 +37,22 @@
int j = (this.field_194811_H - i) / 2; int j = (this.field_194811_H - i) / 2;
int k = this.field_194812_I - 59; int k = this.field_194812_I - 59;
if (!this.field_73839_d.field_71442_b.func_78755_b()) { if (!this.field_73839_d.field_71442_b.func_78755_b()) {
@@ -594,7 +599,13 @@ @@ -592,7 +597,13 @@
RenderSystem.enableBlend(); RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc(); RenderSystem.defaultBlendFunc();
func_238467_a_(p_238453_1_, j - 2, k - 2, j + i + 2, k + 9 + 2, this.field_73839_d.field_71474_y.func_216839_a(0)); func_238467_a_(p_238453_1_, j - 2, k - 2, j + i + 2, k + 9 + 2, this.field_73839_d.field_71474_y.func_216839_a(0));
- this.func_175179_f().func_238407_a_(p_238453_1_, iformattabletextcomponent, (float)j, (float)k, 16777215 + (l << 24)); - this.func_175179_f().func_243246_a(p_238453_1_, iformattabletextcomponent, (float)j, (float)k, 16777215 + (l << 24));
+ FontRenderer font = field_92016_l.func_77973_b().getFontRenderer(field_92016_l); + FontRenderer font = field_92016_l.func_77973_b().getFontRenderer(field_92016_l);
+ if (font == null) { + if (font == null) {
+ this.func_175179_f().func_238407_a_(p_238453_1_, highlightTip, (float)j, (float)k, 16777215 + (l << 24)); + this.func_175179_f().func_243246_a(p_238453_1_, highlightTip, (float)j, (float)k, 16777215 + (l << 24));
+ } else { + } else {
+ j = (this.field_194811_H - font.func_238414_a_(highlightTip)) / 2; + j = (this.field_194811_H - font.func_238414_a_(highlightTip)) / 2;
+ font.func_238407_a_(p_238453_1_, highlightTip, (float)j, (float)k, 16777215 + (l << 24)); + font.func_243246_a(p_238453_1_, highlightTip, (float)j, (float)k, 16777215 + (l << 24));
+ } + }
RenderSystem.disableBlend(); RenderSystem.disableBlend();
RenderSystem.popMatrix(); RenderSystem.popMatrix();
} }
@@ -1057,7 +1068,7 @@ @@ -1055,7 +1066,7 @@
ItemStack itemstack = this.field_73839_d.field_71439_g.field_71071_by.func_70448_g(); ItemStack itemstack = this.field_73839_d.field_71439_g.field_71071_by.func_70448_g();
if (itemstack.func_190926_b()) { if (itemstack.func_190926_b()) {
this.field_92017_k = 0; this.field_92017_k = 0;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/advancements/AdvancementsScreen.java --- a/net/minecraft/client/gui/advancements/AdvancementsScreen.java
+++ b/net/minecraft/client/gui/advancements/AdvancementsScreen.java +++ b/net/minecraft/client/gui/advancements/AdvancementsScreen.java
@@ -25,6 +25,7 @@ @@ -29,6 +29,7 @@
private final Map<Advancement, AdvancementTabGui> field_191947_i = Maps.newLinkedHashMap(); private final Map<Advancement, AdvancementTabGui> field_191947_i = Maps.newLinkedHashMap();
private AdvancementTabGui field_191940_s; private AdvancementTabGui field_191940_s;
private boolean field_191944_v; private boolean field_191944_v;
@ -8,7 +8,7 @@
public AdvancementsScreen(ClientAdvancementManager p_i47383_1_) { public AdvancementsScreen(ClientAdvancementManager p_i47383_1_) {
super(NarratorChatListener.field_216868_a); super(NarratorChatListener.field_216868_a);
@@ -40,7 +41,13 @@ @@ -44,7 +45,13 @@
} else { } else {
this.field_191946_h.func_194230_a(this.field_191940_s == null ? null : this.field_191940_s.func_193935_c(), true); this.field_191946_h.func_194230_a(this.field_191940_s == null ? null : this.field_191940_s.func_193935_c(), true);
} }
@ -23,7 +23,7 @@
} }
public void func_231164_f_() { public void func_231164_f_() {
@@ -58,7 +65,7 @@ @@ -62,7 +69,7 @@
int j = (this.field_230709_l_ - 140) / 2; int j = (this.field_230709_l_ - 140) / 2;
for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) { for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) {
@ -32,7 +32,7 @@
this.field_191946_h.func_194230_a(advancementtabgui.func_193935_c(), true); this.field_191946_h.func_194230_a(advancementtabgui.func_193935_c(), true);
break; break;
} }
@@ -82,6 +89,12 @@ @@ -86,6 +93,12 @@
int i = (this.field_230708_k_ - 252) / 2; int i = (this.field_230708_k_ - 252) / 2;
int j = (this.field_230709_l_ - 140) / 2; int j = (this.field_230709_l_ - 140) / 2;
this.func_230446_a_(p_230430_1_); this.func_230446_a_(p_230430_1_);
@ -40,12 +40,12 @@
+ net.minecraft.util.text.ITextComponent page = new net.minecraft.util.text.StringTextComponent(String.format("%d / %d", tabPage + 1, maxPages + 1)); + net.minecraft.util.text.ITextComponent page = new net.minecraft.util.text.StringTextComponent(String.format("%d / %d", tabPage + 1, maxPages + 1));
+ int width = this.field_230712_o_.func_238414_a_(page); + int width = this.field_230712_o_.func_238414_a_(page);
+ RenderSystem.disableLighting(); + RenderSystem.disableLighting();
+ this.field_230712_o_.func_238407_a_(p_230430_1_, page, i + (252 / 2) - (width / 2), j - 44, -1); + this.field_230712_o_.func_238407_a_(p_230430_1_, page.func_241878_f(), i + (252 / 2) - (width / 2), j - 44, -1);
+ } + }
this.func_238696_c_(p_230430_1_, p_230430_2_, p_230430_3_, i, j); this.func_238696_c_(p_230430_1_, p_230430_2_, p_230430_3_, i, j);
this.func_238695_a_(p_230430_1_, i, j); this.func_238695_a_(p_230430_1_, i, j);
this.func_238697_d_(p_230430_1_, p_230430_2_, p_230430_3_, i, j); this.func_238697_d_(p_230430_1_, p_230430_2_, p_230430_3_, i, j);
@@ -129,6 +142,7 @@ @@ -132,6 +145,7 @@
this.field_230706_i_.func_110434_K().func_110577_a(field_191945_g); this.field_230706_i_.func_110434_K().func_110577_a(field_191945_g);
for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) { for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) {
@ -53,7 +53,7 @@
advancementtabgui.func_238683_a_(p_238695_1_, p_238695_2_, p_238695_3_, advancementtabgui == this.field_191940_s); advancementtabgui.func_238683_a_(p_238695_1_, p_238695_2_, p_238695_3_, advancementtabgui == this.field_191940_s);
} }
@@ -136,6 +150,7 @@ @@ -139,6 +153,7 @@
RenderSystem.defaultBlendFunc(); RenderSystem.defaultBlendFunc();
for(AdvancementTabGui advancementtabgui1 : this.field_191947_i.values()) { for(AdvancementTabGui advancementtabgui1 : this.field_191947_i.values()) {
@ -61,7 +61,7 @@
advancementtabgui1.func_191796_a(p_238695_2_, p_238695_3_, this.field_230707_j_); advancementtabgui1.func_191796_a(p_238695_2_, p_238695_3_, this.field_230707_j_);
} }
@@ -158,7 +173,7 @@ @@ -161,7 +176,7 @@
if (this.field_191947_i.size() > 1) { if (this.field_191947_i.size() > 1) {
for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) { for(AdvancementTabGui advancementtabgui : this.field_191947_i.values()) {

View File

@ -13,7 +13,7 @@
@@ -40,7 +43,9 @@ @@ -40,7 +43,9 @@
int i1 = i / 2 - l / 2; int i1 = i / 2 - l / 2;
int j1 = j - 9; int j1 = j - 9;
this.field_184059_f.field_71466_p.func_238407_a_(p_238484_1_, itextcomponent, (float)i1, (float)j1, 16777215); this.field_184059_f.field_71466_p.func_243246_a(p_238484_1_, itextcomponent, (float)i1, (float)j1, 16777215);
- j += 10 + 9; - j += 10 + 9;
+ } + }
+ j += event.getIncrement(); + j += event.getIncrement();

View File

@ -4,7 +4,7 @@
list.add(this.func_211534_a(entry)); list.add(this.func_211534_a(entry));
} }
- for(ResourceLocation resourcelocation : this.field_175242_a.func_147114_u().func_199724_l().func_199717_a().func_199913_a(blockstate.func_177230_c())) { - for(ResourceLocation resourcelocation : this.field_175242_a.func_147114_u().func_199724_l().func_241835_a().func_199913_a(blockstate.func_177230_c())) {
+ for(ResourceLocation resourcelocation : blockstate.func_177230_c().getTags()) { + for(ResourceLocation resourcelocation : blockstate.func_177230_c().getTags()) {
list.add("#" + resourcelocation); list.add("#" + resourcelocation);
} }
@ -13,7 +13,7 @@
list.add(this.func_211534_a(entry1)); list.add(this.func_211534_a(entry1));
} }
- for(ResourceLocation resourcelocation1 : this.field_175242_a.func_147114_u().func_199724_l().func_205704_c().func_199913_a(fluidstate.func_206886_c())) { - for(ResourceLocation resourcelocation1 : this.field_175242_a.func_147114_u().func_199724_l().func_241837_c().func_199913_a(fluidstate.func_206886_c())) {
+ for(ResourceLocation resourcelocation1 : fluidstate.func_206886_c().getTags()) { + for(ResourceLocation resourcelocation1 : fluidstate.func_206886_c().getTags()) {
list.add("#" + resourcelocation1); list.add("#" + resourcelocation1);
} }

View File

@ -1,15 +1,15 @@
--- a/net/minecraft/client/gui/recipebook/RecipeBookGui.java --- a/net/minecraft/client/gui/recipebook/RecipeBookGui.java
+++ b/net/minecraft/client/gui/recipebook/RecipeBookGui.java +++ b/net/minecraft/client/gui/recipebook/RecipeBookGui.java
@@ -92,7 +92,7 @@ @@ -95,7 +95,7 @@
this.func_205702_a(); this.func_205702_a();
this.field_193018_j.clear(); this.field_193018_j.clear();
- for(RecipeBookCategories recipebookcategories : ClientRecipeBook.func_216769_b(this.field_201522_g)) { - for(RecipeBookCategories recipebookcategories : RecipeBookCategories.func_243236_a(this.field_201522_g.func_241850_m())) {
+ for(RecipeBookCategories recipebookcategories : this.field_201522_g.getRecipeBookCategories()) { + for(RecipeBookCategories recipebookcategories : this.field_201522_g.getRecipeBookCategories()) {
this.field_193018_j.add(new RecipeTabToggleWidget(recipebookcategories)); this.field_193018_j.add(new RecipeTabToggleWidget(recipebookcategories));
} }
@@ -425,7 +425,7 @@ @@ -433,7 +433,7 @@
languagemanager.func_135045_a(language); languagemanager.func_135045_a(language);
this.field_191888_F.field_71474_y.field_74363_ab = language.getCode(); this.field_191888_F.field_71474_y.field_74363_ab = language.getCode();

View File

@ -1,10 +1,10 @@
--- a/net/minecraft/client/gui/screen/CreateWorldScreen.java --- a/net/minecraft/client/gui/screen/CreateWorldScreen.java
+++ b/net/minecraft/client/gui/screen/CreateWorldScreen.java +++ b/net/minecraft/client/gui/screen/CreateWorldScreen.java
@@ -384,6 +384,7 @@ @@ -542,6 +542,7 @@
if (path != null) {
File file1 = path.toFile(); File file1 = path.toFile();
ResourcePackList<ResourcePackInfo> resourcepacklist = new ResourcePackList<>(ResourcePackInfo::new, new ServerPackFinder(), new FolderPackFinder(file1, IPackNameDecorator.field_232625_a_)); if (this.field_243416_G == null) {
+ net.minecraftforge.fml.packs.ResourcePackLoader.loadResourcePacks(resourcepacklist, net.minecraftforge.fml.server.ServerLifecycleHooks::buildPackFinder); this.field_243416_G = new ResourcePackList(new ServerPackFinder(), new FolderPackFinder(file1, IPackNameDecorator.field_232625_a_));
resourcepacklist.func_198983_a(); + net.minecraftforge.fml.packs.ResourcePackLoader.loadResourcePacks(this.field_243416_G, net.minecraftforge.fml.server.ServerLifecycleHooks::buildPackFinder);
resourcepacklist.func_198985_a(this.field_238933_b_.func_234884_a_()); this.field_243416_G.func_198983_a();
this.field_230706_i_.func_147108_a(new DataPackScreen(this, resourcepacklist, this::func_241621_a_, file1)); }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/screen/LanguageScreen.java --- a/net/minecraft/client/gui/screen/LanguageScreen.java
+++ b/net/minecraft/client/gui/screen/LanguageScreen.java +++ b/net/minecraft/client/gui/screen/LanguageScreen.java
@@ -43,7 +43,7 @@ @@ -45,7 +45,7 @@
if (languagescreen$list$languageentry != null && !languagescreen$list$languageentry.field_214398_b.getCode().equals(this.field_146454_h.func_135041_c().getCode())) { if (languagescreen$list$languageentry != null && !languagescreen$list$languageentry.field_214398_b.getCode().equals(this.field_146454_h.func_135041_c().getCode())) {
this.field_146454_h.func_135045_a(languagescreen$list$languageentry.field_214398_b); this.field_146454_h.func_135045_a(languagescreen$list$languageentry.field_214398_b);
this.field_228183_b_.field_74363_ab = languagescreen$list$languageentry.field_214398_b.getCode(); this.field_228183_b_.field_74363_ab = languagescreen$list$languageentry.field_214398_b.getCode();

View File

@ -34,7 +34,7 @@
this.func_140005_i(); this.func_140005_i();
}, button$itooltip))).field_230693_o_ = flag; }, button$itooltip))).field_230693_o_ = flag;
} }
@@ -222,6 +228,7 @@ @@ -229,6 +235,7 @@
this.field_230706_i_.func_110434_K().func_110577_a(field_194400_H); this.field_230706_i_.func_110434_K().func_110577_a(field_194400_H);
func_238463_a_(p_230430_1_, j + 88, 67, 0.0F, 0.0F, 98, 14, 128, 16); func_238463_a_(p_230430_1_, j + 88, 67, 0.0F, 0.0F, 98, 14, 128, 16);
@ -42,22 +42,23 @@
if (this.field_73975_c != null) { if (this.field_73975_c != null) {
RenderSystem.pushMatrix(); RenderSystem.pushMatrix();
RenderSystem.translatef((float)(this.field_230708_k_ / 2 + 90), 70.0F, 0.0F); RenderSystem.translatef((float)(this.field_230708_k_ / 2 + 90), 70.0F, 0.0F);
@@ -244,7 +251,13 @@ @@ -251,7 +258,14 @@
s = s + I18n.func_135052_a("menu.modded"); s = s + I18n.func_135052_a("menu.modded");
} }
- this.func_238476_c_(p_230430_1_, this.field_230712_o_, s, 2, this.field_230709_l_ - 10, 16777215 | l); - func_238476_c_(p_230430_1_, this.field_230712_o_, s, 2, this.field_230709_l_ - 10, 16777215 | l);
+ net.minecraftforge.fml.BrandingControl.forEachLine(true, true, (brdline, brd) -> + net.minecraftforge.fml.BrandingControl.forEachLine(true, true, (brdline, brd) ->
+ this.func_238476_c_(p_230430_1_, this.field_230712_o_, brd, 2, this.field_230709_l_ - ( 10 + brdline * (this.field_230712_o_.field_78288_b + 1)), 16777215 | l) + func_238476_c_(p_230430_1_, this.field_230712_o_, brd, 2, this.field_230709_l_ - ( 10 + brdline * (this.field_230712_o_.field_78288_b + 1)), 16777215 | l)
+ ); + );
+ +
+ net.minecraftforge.fml.BrandingControl.forEachAboveCopyrightLine((brdline, brd) -> + net.minecraftforge.fml.BrandingControl.forEachAboveCopyrightLine((brdline, brd) ->
+ this.func_238476_c_(p_230430_1_, this.field_230712_o_, brd, this.field_230708_k_ - field_230712_o_.func_78256_a(brd), this.field_230709_l_ - (10 + (brdline + 1) * ( this.field_230712_o_.field_78288_b + 1)), 16777215 | l) + func_238476_c_(p_230430_1_, this.field_230712_o_, brd, this.field_230708_k_ - field_230712_o_.func_78256_a(brd), this.field_230709_l_ - (10 + (brdline + 1) * ( this.field_230712_o_.field_78288_b + 1)), 16777215 | l)
+ ); + );
this.func_238476_c_(p_230430_1_, this.field_230712_o_, "Copyright Mojang AB. Do not distribute!", this.field_193979_N, this.field_230709_l_ - 10, 16777215 | l); +
func_238476_c_(p_230430_1_, this.field_230712_o_, "Copyright Mojang AB. Do not distribute!", this.field_193979_N, this.field_230709_l_ - 10, 16777215 | l);
if (p_230430_2_ > this.field_193979_N && p_230430_2_ < this.field_193979_N + this.field_193978_M && p_230430_3_ > this.field_230709_l_ - 10 && p_230430_3_ < this.field_230709_l_) { if (p_230430_2_ > this.field_193979_N && p_230430_2_ < this.field_193979_N + this.field_193978_M && p_230430_3_ > this.field_230709_l_ - 10 && p_230430_3_ < this.field_230709_l_) {
func_238467_a_(p_230430_1_, this.field_193979_N, this.field_230709_l_ - 1, this.field_193979_N + this.field_193978_M, this.field_230709_l_, 16777215 | l); func_238467_a_(p_230430_1_, this.field_193979_N, this.field_230709_l_ - 1, this.field_193979_N + this.field_193978_M, this.field_230709_l_, 16777215 | l);
@@ -258,6 +271,7 @@ @@ -265,6 +279,7 @@
if (this.func_183501_a() && f1 >= 1.0F) { if (this.func_183501_a() && f1 >= 1.0F) {
this.field_183503_M.func_230430_a_(p_230430_1_, p_230430_2_, p_230430_3_, p_230430_4_); this.field_183503_M.func_230430_a_(p_230430_1_, p_230430_2_, p_230430_3_, p_230430_4_);
} }

View File

@ -1,7 +1,7 @@
--- a/net/minecraft/client/gui/screen/OptionsScreen.java --- a/net/minecraft/client/gui/screen/OptionsScreen.java
+++ b/net/minecraft/client/gui/screen/OptionsScreen.java +++ b/net/minecraft/client/gui/screen/OptionsScreen.java
@@ -146,4 +146,12 @@ @@ -146,4 +146,12 @@
this.func_238472_a_(p_230430_1_, this.field_230712_o_, this.field_230704_d_, this.field_230708_k_ / 2, 15, 16777215); func_238472_a_(p_230430_1_, this.field_230712_o_, this.field_230704_d_, this.field_230708_k_ / 2, 15, 16777215);
super.func_230430_a_(p_230430_1_, p_230430_2_, p_230430_3_, p_230430_4_); super.func_230430_a_(p_230430_1_, p_230430_2_, p_230430_3_, p_230430_4_);
} }
+ +

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/screen/PackLoadingManager.java --- a/net/minecraft/client/gui/screen/PackLoadingManager.java
+++ b/net/minecraft/client/gui/screen/PackLoadingManager.java +++ b/net/minecraft/client/gui/screen/PackLoadingManager.java
@@ -135,6 +135,11 @@ @@ -134,6 +134,11 @@
public void func_230468_k_() { public void func_230468_k_() {
this.func_238879_a_(1); this.func_238879_a_(1);
} }
@ -12,7 +12,7 @@
} }
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
@@ -230,5 +235,7 @@ @@ -229,5 +234,7 @@
boolean func_230469_o_(); boolean func_230469_o_();
boolean func_230470_p_(); boolean func_230470_p_();

View File

@ -1,11 +1,11 @@
--- a/net/minecraft/client/gui/screen/PackScreen.java --- a/net/minecraft/client/gui/screen/PackScreen.java
+++ b/net/minecraft/client/gui/screen/PackScreen.java +++ b/net/minecraft/client/gui/screen/PackScreen.java
@@ -84,7 +84,7 @@ @@ -129,7 +129,7 @@
private void func_238899_a_(ResourcePackList p_238899_1_, Stream<PackLoadingManager.IPack> p_238899_2_) { private void func_238899_a_(net.minecraft.client.gui.widget.list.ResourcePackList p_238899_1_, Stream<PackLoadingManager.IPack> p_238899_2_) {
p_238899_1_.func_231039_at__().clear(); p_238899_1_.func_231039_at__().clear();
- p_238899_2_.forEach((p_238898_2_) -> { - p_238899_2_.forEach((p_238898_2_) -> {
+ p_238899_2_.filter(PackLoadingManager.IPack::notHidden).forEach((p_238898_2_) -> { + p_238899_2_.filter(PackLoadingManager.IPack::notHidden).forEach((p_238898_2_) -> {
p_238899_1_.func_231039_at__().add(new ResourcePackList.ResourcePackEntry(this.field_230706_i_, p_238899_1_, this, p_238898_2_)); p_238899_1_.func_231039_at__().add(new net.minecraft.client.gui.widget.list.ResourcePackList.ResourcePackEntry(this.field_230706_i_, p_238899_1_, this, p_238898_2_));
}); });
} }

View File

@ -4,28 +4,26 @@
} }
protected void func_230457_a_(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) { protected void func_230457_a_(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) {
- this.func_238654_b_(p_230457_1_, this.func_231151_a_(p_230457_2_), p_230457_3_, p_230457_4_); - this.func_243308_b(p_230457_1_, this.func_231151_a_(p_230457_2_), p_230457_3_, p_230457_4_);
+ FontRenderer font = p_230457_2_.func_77973_b().getFontRenderer(p_230457_2_); + FontRenderer font = p_230457_2_.func_77973_b().getFontRenderer(p_230457_2_);
+ net.minecraftforge.fml.client.gui.GuiUtils.preItemToolTip(p_230457_2_); + net.minecraftforge.fml.client.gui.GuiUtils.preItemToolTip(p_230457_2_);
+ this.renderToolTip(p_230457_1_, this.func_231151_a_(p_230457_2_), p_230457_3_, p_230457_4_, (font == null ? this.field_230712_o_ : font)); + this.renderToolTip(p_230457_1_, Lists.transform(this.func_231151_a_(p_230457_2_), ITextComponent::func_241878_f), p_230457_3_, p_230457_4_, (font == null ? this.field_230712_o_ : font));
+ net.minecraftforge.fml.client.gui.GuiUtils.postItemToolTip(); + net.minecraftforge.fml.client.gui.GuiUtils.postItemToolTip();
} }
public List<ITextComponent> func_231151_a_(ItemStack p_231151_1_) { public List<ITextComponent> func_231151_a_(ItemStack p_231151_1_) {
@@ -125,7 +128,11 @@ @@ -129,6 +132,10 @@
} }
public void func_238654_b_(MatrixStack p_238654_1_, List<? extends ITextProperties> p_238654_2_, int p_238654_3_, int p_238654_4_) { public void func_238654_b_(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_) {
- if (!p_238654_2_.isEmpty()) {
+ this.renderToolTip(p_238654_1_, p_238654_2_, p_238654_3_, p_238654_4_, field_230712_o_); + this.renderToolTip(p_238654_1_, p_238654_2_, p_238654_3_, p_238654_4_, field_230712_o_);
+ } + }
+ public void renderToolTip(MatrixStack p_238654_1_, List<? extends ITextProperties> p_238654_2_, int p_238654_3_, int p_238654_4_, FontRenderer font) { + public void renderToolTip(MatrixStack p_238654_1_, List<? extends IReorderingProcessor> p_238654_2_, int p_238654_3_, int p_238654_4_, FontRenderer font) {
+ net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(p_238654_1_, p_238654_2_, p_238654_3_, p_238654_4_, field_230708_k_, field_230709_l_, -1, font); + //net.minecraftforge.fml.client.gui.GuiUtils.drawHoveringText(p_238654_1_, p_238654_2_, p_238654_3_, p_238654_4_, field_230708_k_, field_230709_l_, -1, font);
+ if (false && !p_238654_2_.isEmpty()) { if (!p_238654_2_.isEmpty()) {
int i = 0; int i = 0;
for(ITextProperties itextproperties : p_238654_2_) { @@ -289,9 +296,12 @@
@@ -285,9 +292,12 @@
} }
public void func_231159_b_(String p_231159_1_, boolean p_231159_2_) { public void func_231159_b_(String p_231159_1_, boolean p_231159_2_) {
@ -38,7 +36,7 @@
this.field_230706_i_.field_71439_g.func_71165_d(p_231159_1_); this.field_230706_i_.field_71439_g.func_71165_d(p_231159_1_);
} }
@@ -298,10 +308,17 @@ @@ -302,10 +312,17 @@
this.field_230712_o_ = p_231158_1_.field_71466_p; this.field_230712_o_ = p_231158_1_.field_71466_p;
this.field_230708_k_ = p_231158_2_; this.field_230708_k_ = p_231158_2_;
this.field_230709_l_ = p_231158_3_; this.field_230709_l_ = p_231158_3_;
@ -56,7 +54,7 @@
} }
public List<? extends IGuiEventListener> func_231039_at__() { public List<? extends IGuiEventListener> func_231039_at__() {
@@ -324,6 +341,7 @@ @@ -328,6 +345,7 @@
public void func_238651_a_(MatrixStack p_238651_1_, int p_238651_2_) { public void func_238651_a_(MatrixStack p_238651_1_, int p_238651_2_) {
if (this.field_230706_i_.field_71441_e != null) { if (this.field_230706_i_.field_71441_e != null) {
this.func_238468_a_(p_238651_1_, 0, 0, this.field_230708_k_, this.field_230709_l_, -1072689136, -804253680); this.func_238468_a_(p_238651_1_, 0, 0, this.field_230708_k_, this.field_230709_l_, -1072689136, -804253680);
@ -64,7 +62,7 @@
} else { } else {
this.func_231165_f_(p_238651_2_); this.func_231165_f_(p_238651_2_);
} }
@@ -342,6 +360,7 @@ @@ -346,6 +364,7 @@
bufferbuilder.func_225582_a_((double)this.field_230708_k_, 0.0D, 0.0D).func_225583_a_((float)this.field_230708_k_ / 32.0F, (float)p_231165_1_).func_225586_a_(64, 64, 64, 255).func_181675_d(); bufferbuilder.func_225582_a_((double)this.field_230708_k_, 0.0D, 0.0D).func_225583_a_((float)this.field_230708_k_ / 32.0F, (float)p_231165_1_).func_225586_a_(64, 64, 64, 255).func_181675_d();
bufferbuilder.func_225582_a_(0.0D, 0.0D, 0.0D).func_225583_a_(0.0F, (float)p_231165_1_).func_225586_a_(64, 64, 64, 255).func_181675_d(); bufferbuilder.func_225582_a_(0.0D, 0.0D, 0.0D).func_225583_a_(0.0F, (float)p_231165_1_).func_225586_a_(64, 64, 64, 255).func_181675_d();
tessellator.func_78381_a(); tessellator.func_78381_a();
@ -72,7 +70,7 @@
} }
public boolean func_231177_au__() { public boolean func_231177_au__() {
@@ -428,4 +447,8 @@ @@ -432,4 +451,8 @@
public void func_230476_a_(List<Path> p_230476_1_) { public void func_230476_a_(List<Path> p_230476_1_) {
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/gui/screen/ServerSelectionList.java --- a/net/minecraft/client/gui/screen/ServerSelectionList.java
+++ b/net/minecraft/client/gui/screen/ServerSelectionList.java +++ b/net/minecraft/client/gui/screen/ServerSelectionList.java
@@ -302,6 +302,8 @@ @@ -310,6 +310,8 @@
this.field_148303_c.func_238854_b_(list1); this.field_148303_c.func_238854_b_(list1);
} }

View File

@ -105,19 +105,20 @@
this.func_184098_a(slot, k, p_231048_5_, ClickType.CLONE); this.func_184098_a(slot, k, p_231048_5_, ClickType.CLONE);
} else { } else {
boolean flag1 = k != -999 && (InputMappings.func_216506_a(Minecraft.func_71410_x().func_228018_at_().func_198092_i(), 340) || InputMappings.func_216506_a(Minecraft.func_71410_x().func_228018_at_().func_198092_i(), 344)); boolean flag1 = k != -999 && (InputMappings.func_216506_a(Minecraft.func_71410_x().func_228018_at_().func_198092_i(), 340) || InputMappings.func_216506_a(Minecraft.func_71410_x().func_228018_at_().func_198092_i(), 344));
@@ -534,19 +544,26 @@ @@ -530,34 +540,39 @@
} }
public boolean func_231046_a_(int p_231046_1_, int p_231046_2_, int p_231046_3_) { public boolean func_231046_a_(int p_231046_1_, int p_231046_2_, int p_231046_3_) {
+ InputMappings.Input mouseKey = InputMappings.func_197954_a(p_231046_1_, p_231046_2_); + InputMappings.Input mouseKey = InputMappings.func_197954_a(p_231046_1_, p_231046_2_);
if (super.func_231046_a_(p_231046_1_, p_231046_2_, p_231046_3_)) { if (super.func_231046_a_(p_231046_1_, p_231046_2_, p_231046_3_)) {
return true; return true;
- } else if (p_231046_1_ != 256 && !this.field_230706_i_.field_71474_y.field_151445_Q.func_197976_a(p_231046_1_, p_231046_2_)) { - } else if (this.field_230706_i_.field_71474_y.field_151445_Q.func_197976_a(p_231046_1_, p_231046_2_)) {
+ } else if (this.field_230706_i_.field_71474_y.field_151445_Q.isActiveAndMatches(mouseKey)) {
this.func_231175_as__();
return true;
} else {
- this.func_195363_d(p_231046_1_, p_231046_2_); - this.func_195363_d(p_231046_1_, p_231046_2_);
+ } else if (p_231046_1_ != 256 && !this.field_230706_i_.field_71474_y.field_151445_Q.isActiveAndMatches(mouseKey)) { + boolean handled = this.func_195363_d(p_231046_1_, p_231046_2_);// Forge MC-146650: Needs to return true when the key is handled
+ boolean handled = false;// Forge MC-146650: Needs to return true when the key is handled.
+ if (this.func_195363_d(p_231046_1_, p_231046_2_))
+ handled = true;
if (this.field_147006_u != null && this.field_147006_u.func_75216_d()) { if (this.field_147006_u != null && this.field_147006_u.func_75216_d()) {
- if (this.field_230706_i_.field_71474_y.field_74322_I.func_197976_a(p_231046_1_, p_231046_2_)) { - if (this.field_230706_i_.field_71474_y.field_74322_I.func_197976_a(p_231046_1_, p_231046_2_)) {
+ if (this.field_230706_i_.field_71474_y.field_74322_I.isActiveAndMatches(mouseKey)) { + if (this.field_230706_i_.field_71474_y.field_74322_I.isActiveAndMatches(mouseKey)) {
@ -129,15 +130,13 @@
+ handled = true; + handled = true;
} }
+ } else if (this.field_230706_i_.field_71474_y.field_74316_C.isActiveAndMatches(mouseKey)) { + } else if (this.field_230706_i_.field_71474_y.field_74316_C.isActiveAndMatches(mouseKey)) {
+ handled = true; // Forge MC-146650: Emulate MC bug, so we don't drop from hotbar when pressing drop without hovering over a item. + handled = true; // Forge MC-146650: Emulate MC bug, so we don't drop from hotbar when pressing drop without hovering over a item.
} }
- return true; - return true;
+ return handled; + return handled;
} else { }
this.field_230706_i_.field_71439_g.func_71053_j(); }
return true;
@@ -555,13 +572,13 @@
protected boolean func_195363_d(int p_195363_1_, int p_195363_2_) { protected boolean func_195363_d(int p_195363_1_, int p_195363_2_) {
if (this.field_230706_i_.field_71439_g.field_71071_by.func_70445_o().func_190926_b() && this.field_147006_u != null) { if (this.field_230706_i_.field_71439_g.field_71071_by.func_70445_o().func_190926_b() && this.field_147006_u != null) {
@ -153,11 +152,10 @@
this.func_184098_a(this.field_147006_u, this.field_147006_u.field_75222_d, i, ClickType.SWAP); this.func_184098_a(this.field_147006_u, this.field_147006_u.field_75222_d, i, ClickType.SWAP);
return true; return true;
} }
@@ -592,4 +609,16 @@ @@ -589,6 +604,18 @@
public T func_212873_a_() {
return this.field_147002_h; return this.field_147002_h;
} }
+
+ @javax.annotation.Nullable + @javax.annotation.Nullable
+ public Slot getSlotUnderMouse() { return this.field_147006_u; } + public Slot getSlotUnderMouse() { return this.field_147006_u; }
+ public int getGuiLeft() { return field_147003_i; } + public int getGuiLeft() { return field_147003_i; }
@ -169,4 +167,7 @@
+ public int getSlotColor(int index) { + public int getSlotColor(int index) {
+ return slotColor; + return slotColor;
+ } + }
} +
public void func_231175_as__() {
this.field_230706_i_.field_71439_g.func_71053_j();
super.func_231175_as__();

View File

@ -80,8 +80,8 @@
- if (itemgroup.func_78019_g()) { - if (itemgroup.func_78019_g()) {
+ if (itemgroup != null && itemgroup.func_78019_g()) { + if (itemgroup != null && itemgroup.func_78019_g()) {
RenderSystem.disableBlend(); RenderSystem.disableBlend();
- this.field_230712_o_.func_238421_b_(p_230451_1_, I18n.func_135052_a(itemgroup.func_78024_c()), 8.0F, 6.0F, 4210752); - this.field_230712_o_.func_243248_b(p_230451_1_, itemgroup.func_242392_c(), 8.0F, 6.0F, 4210752);
+ this.field_230712_o_.func_238421_b_(p_230451_1_, I18n.func_135052_a(itemgroup.func_78024_c()), 8.0F, 6.0F, itemgroup.getLabelColor()); + this.field_230712_o_.func_243248_b(p_230451_1_, itemgroup.func_242392_c(), 8.0F, 6.0F, itemgroup.getLabelColor());
} }
} }
@ -154,11 +154,11 @@
break; break;
} }
} }
+ if (!rendered && !func_238809_a_(p_230430_1_, ItemGroup.field_78027_g, p_230430_2_, p_230430_3_)) + if (!rendered && !this.func_238809_a_(p_230430_1_, ItemGroup.field_78027_g, p_230430_2_, p_230430_3_))
+ func_238809_a_(p_230430_1_, ItemGroup.field_78036_m, p_230430_2_, p_230430_3_); + this.func_238809_a_(p_230430_1_, ItemGroup.field_78036_m, p_230430_2_, p_230430_3_);
if (this.field_147064_C != null && field_147058_w == ItemGroup.field_78036_m.func_78021_a() && this.func_195359_a(this.field_147064_C.field_75223_e, this.field_147064_C.field_75221_f, 16, 16, (double)p_230430_2_, (double)p_230430_3_)) { if (this.field_147064_C != null && field_147058_w == ItemGroup.field_78036_m.func_78021_a() && this.func_195359_a(this.field_147064_C.field_75223_e, this.field_147064_C.field_75221_f, 16, 16, (double)p_230430_2_, (double)p_230430_3_)) {
this.func_238652_a_(p_230430_1_, new TranslationTextComponent("inventory.binSlot"), p_230430_2_, p_230430_3_); this.func_238652_a_(p_230430_1_, field_243345_D, p_230430_2_, p_230430_3_);
} }
+ if (maxPages != 0) { + if (maxPages != 0) {
@ -166,7 +166,7 @@
+ RenderSystem.disableLighting(); + RenderSystem.disableLighting();
+ this.func_230926_e_(300); + this.func_230926_e_(300);
+ this.field_230707_j_.field_77023_b = 300.0F; + this.field_230707_j_.field_77023_b = 300.0F;
+ field_230712_o_.func_238407_a_(p_230430_1_, page, field_147003_i + (field_146999_f / 2) - (field_230712_o_.func_238414_a_(page) / 2), field_147009_r - 44, -1); + field_230712_o_.func_238407_a_(p_230430_1_, page.func_241878_f(), field_147003_i + (field_146999_f / 2) - (field_230712_o_.func_238414_a_(page) / 2), field_147009_r - 44, -1);
+ this.func_230926_e_(0); + this.func_230926_e_(0);
+ this.field_230707_j_.field_77023_b = 0.0F; + this.field_230707_j_.field_77023_b = 0.0F;
+ } + }
@ -175,13 +175,13 @@
this.func_230459_a_(p_230430_1_, p_230430_2_, p_230430_3_); this.func_230459_a_(p_230430_1_, p_230430_2_, p_230430_3_);
} }
@@ -612,7 +670,10 @@ @@ -612,7 +670,10 @@
list1.add(1, (new TranslationTextComponent(itemgroup.func_78024_c())).func_240699_a_(TextFormatting.BLUE)); list1.add(1, itemgroup.func_242392_c().func_230532_e_().func_240699_a_(TextFormatting.BLUE));
} }
- this.func_238654_b_(p_230457_1_, list1, p_230457_3_, p_230457_4_); - this.func_243308_b(p_230457_1_, list1, p_230457_3_, p_230457_4_);
+ net.minecraft.client.gui.FontRenderer font = p_230457_2_.func_77973_b().getFontRenderer(p_230457_2_); + net.minecraft.client.gui.FontRenderer font = p_230457_2_.func_77973_b().getFontRenderer(p_230457_2_);
+ net.minecraftforge.fml.client.gui.GuiUtils.preItemToolTip(p_230457_2_); + net.minecraftforge.fml.client.gui.GuiUtils.preItemToolTip(p_230457_2_);
+ this.renderToolTip(p_230457_1_, list1, p_230457_3_, p_230457_4_, (font == null ? this.field_230712_o_ : font)); + this.renderToolTip(p_230457_1_, Lists.transform(list1, ITextComponent::func_241878_f), p_230457_3_, p_230457_4_, (font == null ? this.field_230712_o_ : font));
+ net.minecraftforge.fml.client.gui.GuiUtils.postItemToolTip(); + net.minecraftforge.fml.client.gui.GuiUtils.postItemToolTip();
} else { } else {
super.func_230457_a_(p_230457_1_, p_230457_2_, p_230457_3_, p_230457_4_); super.func_230457_a_(p_230457_1_, p_230457_2_, p_230457_3_, p_230457_4_);

View File

@ -6,7 +6,7 @@
this.func_230441_a_(p_230431_1_, minecraft, p_230431_2_, p_230431_3_); this.func_230441_a_(p_230431_1_, minecraft, p_230431_2_, p_230431_3_);
- int j = this.field_230693_o_ ? 16777215 : 10526880; - int j = this.field_230693_o_ ? 16777215 : 10526880;
+ int j = getFGColor(); + int j = getFGColor();
this.func_238472_a_(p_230431_1_, fontrenderer, this.func_230458_i_(), this.field_230690_l_ + this.field_230688_j_ / 2, this.field_230691_m_ + (this.field_230689_k_ - 8) / 2, j | MathHelper.func_76123_f(this.field_230695_q_ * 255.0F) << 24); func_238472_a_(p_230431_1_, fontrenderer, this.func_230458_i_(), this.field_230690_l_ + this.field_230688_j_ / 2, this.field_230691_m_ + (this.field_230689_k_ - 8) / 2, j | MathHelper.func_76123_f(this.field_230695_q_ * 255.0F) << 24);
} }
@@ -206,6 +206,14 @@ @@ -206,6 +206,14 @@

View File

@ -29,7 +29,7 @@
@@ -114,7 +115,7 @@ @@ -114,7 +115,7 @@
public void func_230432_a_(MatrixStack p_230432_1_, int p_230432_2_, int p_230432_3_, int p_230432_4_, int p_230432_5_, int p_230432_6_, int p_230432_7_, int p_230432_8_, boolean p_230432_9_, float p_230432_10_) { public void func_230432_a_(MatrixStack p_230432_1_, int p_230432_2_, int p_230432_3_, int p_230432_4_, int p_230432_5_, int p_230432_6_, int p_230432_7_, int p_230432_8_, boolean p_230432_9_, float p_230432_10_) {
boolean flag = KeyBindingList.this.field_148191_k.field_146491_f == this.field_148282_b; boolean flag = KeyBindingList.this.field_148191_k.field_146491_f == this.field_148282_b;
KeyBindingList.this.field_230668_b_.field_71466_p.func_238422_b_(p_230432_1_, this.field_148283_c, (float)(p_230432_4_ + 90 - KeyBindingList.this.field_148188_n), (float)(p_230432_3_ + p_230432_6_ / 2 - 9 / 2), 16777215); KeyBindingList.this.field_230668_b_.field_71466_p.func_243248_b(p_230432_1_, this.field_148283_c, (float)(p_230432_4_ + 90 - KeyBindingList.this.field_148188_n), (float)(p_230432_3_ + p_230432_6_ / 2 - 9 / 2), 16777215);
- this.field_148281_e.field_230690_l_ = p_230432_4_ + 190; - this.field_148281_e.field_230690_l_ = p_230432_4_ + 190;
+ this.field_148281_e.field_230690_l_ = p_230432_4_ + 190 + 20; + this.field_148281_e.field_230690_l_ = p_230432_4_ + 190 + 20;
this.field_148281_e.field_230691_m_ = p_230432_3_; this.field_148281_e.field_230691_m_ = p_230432_3_;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/multiplayer/PlayerController.java --- a/net/minecraft/client/multiplayer/PlayerController.java
+++ b/net/minecraft/client/multiplayer/PlayerController.java +++ b/net/minecraft/client/multiplayer/PlayerController.java
@@ -94,6 +94,7 @@ @@ -93,6 +93,7 @@
} }
public boolean func_187103_a(BlockPos p_187103_1_) { public boolean func_187103_a(BlockPos p_187103_1_) {
@ -8,7 +8,7 @@
if (this.field_78776_a.field_71439_g.func_223729_a(this.field_78776_a.field_71441_e, p_187103_1_, this.field_78779_k)) { if (this.field_78776_a.field_71439_g.func_223729_a(this.field_78776_a.field_71441_e, p_187103_1_, this.field_78779_k)) {
return false; return false;
} else { } else {
@@ -105,12 +106,11 @@ @@ -104,12 +105,11 @@
Block block = blockstate.func_177230_c(); Block block = blockstate.func_177230_c();
if ((block instanceof CommandBlockBlock || block instanceof StructureBlock || block instanceof JigsawBlock) && !this.field_78776_a.field_71439_g.func_195070_dx()) { if ((block instanceof CommandBlockBlock || block instanceof StructureBlock || block instanceof JigsawBlock) && !this.field_78776_a.field_71439_g.func_195070_dx()) {
return false; return false;
@ -23,7 +23,7 @@
if (flag) { if (flag) {
block.func_176206_d(world, p_187103_1_, blockstate); block.func_176206_d(world, p_187103_1_, blockstate);
} }
@@ -131,21 +131,25 @@ @@ -130,21 +130,25 @@
BlockState blockstate = this.field_78776_a.field_71441_e.func_180495_p(p_180511_1_); BlockState blockstate = this.field_78776_a.field_71441_e.func_180495_p(p_180511_1_);
this.field_78776_a.func_193032_ao().func_193294_a(this.field_78776_a.field_71441_e, p_180511_1_, blockstate, 1.0F); this.field_78776_a.func_193032_ao().func_193294_a(this.field_78776_a.field_71441_e, p_180511_1_, blockstate, 1.0F);
this.func_225324_a(CPlayerDiggingPacket.Action.START_DESTROY_BLOCK, p_180511_1_, p_180511_2_); this.func_225324_a(CPlayerDiggingPacket.Action.START_DESTROY_BLOCK, p_180511_1_, p_180511_2_);
@ -50,7 +50,7 @@
if (flag && blockstate1.func_185903_a(this.field_78776_a.field_71439_g, this.field_78776_a.field_71439_g.field_70170_p, p_180511_1_) >= 1.0F) { if (flag && blockstate1.func_185903_a(this.field_78776_a.field_71439_g, this.field_78776_a.field_71439_g.field_70170_p, p_180511_1_) >= 1.0F) {
this.func_187103_a(p_180511_1_); this.func_187103_a(p_180511_1_);
} else { } else {
@@ -185,22 +189,24 @@ @@ -184,22 +188,24 @@
BlockState blockstate1 = this.field_78776_a.field_71441_e.func_180495_p(p_180512_1_); BlockState blockstate1 = this.field_78776_a.field_71441_e.func_180495_p(p_180512_1_);
this.field_78776_a.func_193032_ao().func_193294_a(this.field_78776_a.field_71441_e, p_180512_1_, blockstate1, 1.0F); this.field_78776_a.func_193032_ao().func_193294_a(this.field_78776_a.field_71441_e, p_180512_1_, blockstate1, 1.0F);
this.func_225324_a(CPlayerDiggingPacket.Action.START_DESTROY_BLOCK, p_180512_1_, p_180512_2_); this.func_225324_a(CPlayerDiggingPacket.Action.START_DESTROY_BLOCK, p_180512_1_, p_180512_2_);
@ -77,7 +77,7 @@
if (this.field_78770_f >= 1.0F) { if (this.field_78770_f >= 1.0F) {
this.field_78778_j = false; this.field_78778_j = false;
this.func_225324_a(CPlayerDiggingPacket.Action.STOP_DESTROY_BLOCK, p_180512_1_, p_180512_2_); this.func_225324_a(CPlayerDiggingPacket.Action.STOP_DESTROY_BLOCK, p_180512_1_, p_180512_2_);
@@ -219,7 +225,8 @@ @@ -218,7 +224,8 @@
} }
public float func_78757_d() { public float func_78757_d() {
@ -87,7 +87,7 @@
} }
public void func_78765_e() { public void func_78765_e() {
@@ -236,7 +243,7 @@ @@ -235,7 +242,7 @@
ItemStack itemstack = this.field_78776_a.field_71439_g.func_184614_ca(); ItemStack itemstack = this.field_78776_a.field_71439_g.func_184614_ca();
boolean flag = this.field_85183_f.func_190926_b() && itemstack.func_190926_b(); boolean flag = this.field_85183_f.func_190926_b() && itemstack.func_190926_b();
if (!this.field_85183_f.func_190926_b() && !itemstack.func_190926_b()) { if (!this.field_85183_f.func_190926_b() && !itemstack.func_190926_b()) {
@ -96,7 +96,7 @@
} }
return p_178893_1_.equals(this.field_178895_c) && flag; return p_178893_1_.equals(this.field_178895_c) && flag;
@@ -258,13 +265,27 @@ @@ -257,13 +264,27 @@
return ActionResultType.FAIL; return ActionResultType.FAIL;
} else { } else {
ItemStack itemstack = p_217292_1_.func_184586_b(p_217292_3_); ItemStack itemstack = p_217292_1_.func_184586_b(p_217292_3_);
@ -126,7 +126,7 @@
ActionResultType actionresulttype = p_217292_2_.func_180495_p(blockpos).func_227031_a_(p_217292_2_, p_217292_1_, p_217292_3_, p_217292_4_); ActionResultType actionresulttype = p_217292_2_.func_180495_p(blockpos).func_227031_a_(p_217292_2_, p_217292_1_, p_217292_3_, p_217292_4_);
if (actionresulttype.func_226246_a_()) { if (actionresulttype.func_226246_a_()) {
this.field_78774_b.func_147297_a(new CPlayerTryUseItemOnBlockPacket(p_217292_3_, p_217292_4_)); this.field_78774_b.func_147297_a(new CPlayerTryUseItemOnBlockPacket(p_217292_3_, p_217292_4_));
@@ -273,8 +294,8 @@ @@ -272,8 +293,8 @@
} }
this.field_78774_b.func_147297_a(new CPlayerTryUseItemOnBlockPacket(p_217292_3_, p_217292_4_)); this.field_78774_b.func_147297_a(new CPlayerTryUseItemOnBlockPacket(p_217292_3_, p_217292_4_));
@ -136,7 +136,7 @@
ActionResultType actionresulttype1; ActionResultType actionresulttype1;
if (this.field_78779_k.func_77145_d()) { if (this.field_78779_k.func_77145_d()) {
int i = itemstack.func_190916_E(); int i = itemstack.func_190916_E();
@@ -302,11 +323,14 @@ @@ -301,11 +322,14 @@
if (p_187101_1_.func_184811_cZ().func_185141_a(itemstack.func_77973_b())) { if (p_187101_1_.func_184811_cZ().func_185141_a(itemstack.func_77973_b())) {
return ActionResultType.PASS; return ActionResultType.PASS;
} else { } else {
@ -151,7 +151,7 @@
} }
return actionresult.func_188397_a(); return actionresult.func_188397_a();
@@ -335,6 +359,9 @@ @@ -334,6 +358,9 @@
public ActionResultType func_187097_a(PlayerEntity p_187097_1_, Entity p_187097_2_, Hand p_187097_3_) { public ActionResultType func_187097_a(PlayerEntity p_187097_1_, Entity p_187097_2_, Hand p_187097_3_) {
this.func_78750_j(); this.func_78750_j();
this.field_78774_b.func_147297_a(new CUseEntityPacket(p_187097_2_, p_187097_3_, p_187097_1_.func_225608_bj_())); this.field_78774_b.func_147297_a(new CUseEntityPacket(p_187097_2_, p_187097_3_, p_187097_1_.func_225608_bj_()));
@ -161,7 +161,7 @@
return this.field_78779_k == GameType.SPECTATOR ? ActionResultType.PASS : p_187097_1_.func_190775_a(p_187097_2_, p_187097_3_); return this.field_78779_k == GameType.SPECTATOR ? ActionResultType.PASS : p_187097_1_.func_190775_a(p_187097_2_, p_187097_3_);
} }
@@ -342,6 +369,9 @@ @@ -341,6 +368,9 @@
this.func_78750_j(); this.func_78750_j();
Vector3d vector3d = p_187102_3_.func_216347_e().func_178786_a(p_187102_2_.func_226277_ct_(), p_187102_2_.func_226278_cu_(), p_187102_2_.func_226281_cx_()); Vector3d vector3d = p_187102_3_.func_216347_e().func_178786_a(p_187102_2_.func_226277_ct_(), p_187102_2_.func_226278_cu_(), p_187102_2_.func_226281_cx_());
this.field_78774_b.func_147297_a(new CUseEntityPacket(p_187102_2_, p_187102_4_, vector3d, p_187102_1_.func_225608_bj_())); this.field_78774_b.func_147297_a(new CUseEntityPacket(p_187102_2_, p_187102_4_, vector3d, p_187102_1_.func_225608_bj_()));

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/network/login/ClientLoginNetHandler.java --- a/net/minecraft/client/network/login/ClientLoginNetHandler.java
+++ b/net/minecraft/client/network/login/ClientLoginNetHandler.java +++ b/net/minecraft/client/network/login/ClientLoginNetHandler.java
@@ -98,6 +98,7 @@ @@ -99,6 +99,7 @@
this.field_209525_d.accept(new TranslationTextComponent("connect.joining")); this.field_209525_d.accept(new TranslationTextComponent("connect.joining"));
this.field_175091_e = p_147390_1_.func_179730_a(); this.field_175091_e = p_147390_1_.func_179730_a();
this.field_147393_d.func_150723_a(ProtocolType.PLAY); this.field_147393_d.func_150723_a(ProtocolType.PLAY);
@ -8,7 +8,7 @@
this.field_147393_d.func_150719_a(new ClientPlayNetHandler(this.field_147394_b, this.field_147395_c, this.field_147393_d, this.field_175091_e)); this.field_147393_d.func_150719_a(new ClientPlayNetHandler(this.field_147394_b, this.field_147395_c, this.field_147393_d, this.field_175091_e));
} }
@@ -126,6 +127,7 @@ @@ -127,6 +128,7 @@
} }
public void func_209521_a(SCustomPayloadLoginPacket p_209521_1_) { public void func_209521_a(SCustomPayloadLoginPacket p_209521_1_) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/network/play/ClientPlayNetHandler.java --- a/net/minecraft/client/network/play/ClientPlayNetHandler.java
+++ b/net/minecraft/client/network/play/ClientPlayNetHandler.java +++ b/net/minecraft/client/network/play/ClientPlayNetHandler.java
@@ -388,6 +388,7 @@ @@ -384,6 +384,7 @@
this.field_147299_f.field_184132_p.func_217737_a(); this.field_147299_f.field_184132_p.func_217737_a();
this.field_147299_f.field_71439_g.func_70065_x(); this.field_147299_f.field_71439_g.func_70065_x();
@ -8,7 +8,7 @@
int i = p_147282_1_.func_149197_c(); int i = p_147282_1_.func_149197_c();
this.field_147300_g.func_217408_a(i, this.field_147299_f.field_71439_g); this.field_147300_g.func_217408_a(i, this.field_147299_f.field_71439_g);
this.field_147299_f.field_71439_g.field_71158_b = new MovementInputFromOptions(this.field_147299_f.field_71474_y); this.field_147299_f.field_71439_g.field_71158_b = new MovementInputFromOptions(this.field_147299_f.field_71474_y);
@@ -399,6 +400,7 @@ @@ -395,6 +396,7 @@
this.field_147299_f.field_71439_g.func_228355_a_(p_147282_1_.func_229743_k_()); this.field_147299_f.field_71439_g.func_228355_a_(p_147282_1_.func_229743_k_());
this.field_147299_f.field_71442_b.func_78746_a(p_147282_1_.func_149198_e()); this.field_147299_f.field_71442_b.func_78746_a(p_147282_1_.func_149198_e());
this.field_147299_f.field_71442_b.func_241675_a_(p_147282_1_.func_241786_f_()); this.field_147299_f.field_71442_b.func_241675_a_(p_147282_1_.func_241786_f_());
@ -16,7 +16,7 @@
this.field_147299_f.field_71474_y.func_82879_c(); this.field_147299_f.field_71474_y.func_82879_c();
this.field_147302_e.func_179290_a(new CCustomPayloadPacket(CCustomPayloadPacket.field_210344_a, (new PacketBuffer(Unpooled.buffer())).func_180714_a(ClientBrandRetriever.getClientModName()))); this.field_147302_e.func_179290_a(new CCustomPayloadPacket(CCustomPayloadPacket.field_210344_a, (new PacketBuffer(Unpooled.buffer())).func_180714_a(ClientBrandRetriever.getClientModName())));
this.field_147299_f.func_213229_ar().func_216814_a(); this.field_147299_f.func_213229_ar().func_216814_a();
@@ -745,7 +747,7 @@ @@ -734,7 +736,7 @@
BlockPos blockpos = new BlockPos(compoundnbt.func_74762_e("x"), compoundnbt.func_74762_e("y"), compoundnbt.func_74762_e("z")); BlockPos blockpos = new BlockPos(compoundnbt.func_74762_e("x"), compoundnbt.func_74762_e("y"), compoundnbt.func_74762_e("z"));
TileEntity tileentity = this.field_147300_g.func_175625_s(blockpos); TileEntity tileentity = this.field_147300_g.func_175625_s(blockpos);
if (tileentity != null) { if (tileentity != null) {
@ -25,7 +25,7 @@
} }
} }
@@ -844,7 +846,9 @@ @@ -815,7 +817,9 @@
public void func_147251_a(SChatPacket p_147251_1_) { public void func_147251_a(SChatPacket p_147251_1_) {
PacketThreadUtil.func_218797_a(p_147251_1_, this, this.field_147299_f); PacketThreadUtil.func_218797_a(p_147251_1_, this, this.field_147299_f);
@ -36,7 +36,7 @@
} }
public void func_147279_a(SAnimateHandPacket p_147279_1_) { public void func_147279_a(SAnimateHandPacket p_147279_1_) {
@@ -1034,8 +1038,10 @@ @@ -1004,8 +1008,10 @@
clientplayerentity1.func_233645_dx_().func_233784_a_(clientplayerentity.func_233645_dx_()); clientplayerentity1.func_233645_dx_().func_233784_a_(clientplayerentity.func_233645_dx_());
} }
@ -47,7 +47,7 @@
this.field_147300_g.func_217408_a(i, clientplayerentity1); this.field_147300_g.func_217408_a(i, clientplayerentity1);
clientplayerentity1.field_70177_z = -180.0F; clientplayerentity1.field_70177_z = -180.0F;
clientplayerentity1.field_71158_b = new MovementInputFromOptions(this.field_147299_f.field_71474_y); clientplayerentity1.field_71158_b = new MovementInputFromOptions(this.field_147299_f.field_71474_y);
@@ -1161,6 +1167,12 @@ @@ -1131,6 +1137,12 @@
if (flag && this.field_147299_f.field_71462_r instanceof CommandBlockScreen) { if (flag && this.field_147299_f.field_71462_r instanceof CommandBlockScreen) {
((CommandBlockScreen)this.field_147299_f.field_71462_r).func_184075_a(); ((CommandBlockScreen)this.field_147299_f.field_71462_r).func_184075_a();
@ -60,15 +60,15 @@
} }
} }
@@ -1329,6 +1341,7 @@ @@ -1299,6 +1311,7 @@
clientrecipebook.func_199644_c(); clientrecipebook.func_243196_a(this.field_199528_o.func_199510_b());
clientrecipebook.func_199642_d().forEach(imutablesearchtree::func_217872_a); clientrecipebook.func_199642_d().forEach(imutablesearchtree::func_217872_a);
imutablesearchtree.func_194040_a(); imutablesearchtree.func_194040_a();
+ net.minecraftforge.client.ForgeHooksClient.onRecipesUpdated(this.field_199528_o); + net.minecraftforge.client.ForgeHooksClient.onRecipesUpdated(this.field_199528_o);
} }
public void func_200232_a(SPlayerLookPacket p_200232_1_) { public void func_200232_a(SPlayerLookPacket p_200232_1_) {
@@ -1409,7 +1422,7 @@ @@ -1376,7 +1389,7 @@
PacketThreadUtil.func_218797_a(p_147260_1_, this, this.field_147299_f); PacketThreadUtil.func_218797_a(p_147260_1_, this, this.field_147299_f);
Entity entity = this.field_147300_g.func_73045_a(p_147260_1_.func_149426_d()); Entity entity = this.field_147300_g.func_73045_a(p_147260_1_.func_149426_d());
if (entity instanceof LivingEntity) { if (entity instanceof LivingEntity) {
@ -77,15 +77,7 @@
if (effect != null) { if (effect != null) {
EffectInstance effectinstance = new EffectInstance(effect, p_147260_1_.func_180755_e(), p_147260_1_.func_149428_f(), p_147260_1_.func_186984_g(), p_147260_1_.func_179707_f(), p_147260_1_.func_205527_h()); EffectInstance effectinstance = new EffectInstance(effect, p_147260_1_.func_180755_e(), p_147260_1_.func_149428_f(), p_147260_1_.func_186984_g(), p_147260_1_.func_179707_f(), p_147260_1_.func_205527_h());
effectinstance.func_100012_b(p_147260_1_.func_149429_c()); effectinstance.func_100012_b(p_147260_1_.func_149429_c());
@@ -1423,6 +1436,7 @@ @@ -1883,10 +1896,12 @@
this.field_199725_m = p_199723_1_.func_199858_a();
if (!this.field_147302_e.func_150731_c()) {
this.field_199725_m.func_232980_f_();
+ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.TagsUpdatedEvent(this.field_199725_m));
}
this.field_147299_f.func_213253_a(SearchTreeManager.field_215360_b).func_194040_a();
@@ -1909,10 +1923,12 @@
int l5 = packetbuffer.readInt(); int l5 = packetbuffer.readInt();
this.field_147299_f.field_184132_p.field_229018_q_.func_229022_a_(blockpos8, l3, s10, l5); this.field_147299_f.field_184132_p.field_229018_q_.func_229022_a_(blockpos8, l3, s10, l5);
} else { } else {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/FogRenderer.java --- a/net/minecraft/client/renderer/FogRenderer.java
+++ b/net/minecraft/client/renderer/FogRenderer.java +++ b/net/minecraft/client/renderer/FogRenderer.java
@@ -158,17 +158,28 @@ @@ -156,17 +156,28 @@
} }
float f9 = Math.min(1.0F / field_205093_c, Math.min(1.0F / field_205094_d, 1.0F / field_205095_e)); float f9 = Math.min(1.0F / field_205093_c, Math.min(1.0F / field_205094_d, 1.0F / field_205095_e));
@ -29,27 +29,26 @@
RenderSystem.clearColor(field_205093_c, field_205094_d, field_205095_e, 0.0F); RenderSystem.clearColor(field_205093_c, field_205094_d, field_205095_e, 0.0F);
} }
@@ -177,10 +188,18 @@ @@ -174,10 +185,17 @@
RenderSystem.fogDensity(0.0F);
RenderSystem.fogMode(GlStateManager.FogMode.EXP2); RenderSystem.fogMode(GlStateManager.FogMode.EXP2);
} }
-
- public static void func_228372_a_(ActiveRenderInfo p_228372_0_, FogRenderer.FogType p_228372_1_, float p_228372_2_, boolean p_228372_3_) { + @Deprecated // FORGE: Pass in partialTicks
+ @Deprecated // FORGE: Pass in partialTicks public static void func_228372_a_(ActiveRenderInfo p_228372_0_, FogRenderer.FogType p_228372_1_, float p_228372_2_, boolean p_228372_3_) {
+ public static void func_228372_a_(ActiveRenderInfo p_228372_0_, FogRenderer.FogType p_228372_1_, float p_228372_2_, boolean p_228372_3_) { + setupFog(p_228372_0_, p_228372_1_, p_228372_2_, p_228372_3_, 0);
+ setupFog(p_228372_0_, p_228372_1_, p_228372_2_, p_228372_3_, 0); + }
+ }
+ +
+ public static void setupFog(ActiveRenderInfo p_228372_0_, FogRenderer.FogType p_228372_1_, float p_228372_2_, boolean p_228372_3_, float partialTicks) { + public static void setupFog(ActiveRenderInfo p_228372_0_, FogRenderer.FogType p_228372_1_, float p_228372_2_, boolean p_228372_3_, float partialTicks) {
FluidState fluidstate = p_228372_0_.func_216771_k(); FluidState fluidstate = p_228372_0_.func_216771_k();
Entity entity = p_228372_0_.func_216773_g(); Entity entity = p_228372_0_.func_216773_g();
boolean flag = fluidstate.func_206886_c() != Fluids.field_204541_a;
+ float hook = net.minecraftforge.client.ForgeHooksClient.getFogDensity(p_228372_1_, p_228372_0_, partialTicks, 0.1F); + float hook = net.minecraftforge.client.ForgeHooksClient.getFogDensity(p_228372_1_, p_228372_0_, partialTicks, 0.1F);
+ if (hook >= 0) RenderSystem.fogDensity(hook); + if (hook >= 0) RenderSystem.fogDensity(hook);
+ else + else
if (fluidstate.func_206884_a(FluidTags.field_206959_a)) { if (fluidstate.func_206884_a(FluidTags.field_206959_a)) {
float f = 1.0F; float f = 1.0F;
f = 0.05F; f = 0.05F;
@@ -231,6 +250,7 @@ @@ -228,6 +246,7 @@
RenderSystem.fogEnd(f3); RenderSystem.fogEnd(f3);
RenderSystem.fogMode(GlStateManager.FogMode.LINEAR); RenderSystem.fogMode(GlStateManager.FogMode.LINEAR);
RenderSystem.setupNvFogDistance(); RenderSystem.setupNvFogDistance();

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/GameRenderer.java --- a/net/minecraft/client/renderer/GameRenderer.java
+++ b/net/minecraft/client/renderer/GameRenderer.java +++ b/net/minecraft/client/renderer/GameRenderer.java
@@ -132,6 +132,8 @@ @@ -135,6 +135,8 @@
this.func_175069_a(new ResourceLocation("shaders/post/spider.json")); this.func_175069_a(new ResourceLocation("shaders/post/spider.json"));
} else if (p_175066_1_ instanceof EndermanEntity) { } else if (p_175066_1_ instanceof EndermanEntity) {
this.func_175069_a(new ResourceLocation("shaders/post/invert.json")); this.func_175069_a(new ResourceLocation("shaders/post/invert.json"));
@ -9,7 +9,7 @@
} }
} }
@@ -307,7 +309,7 @@ @@ -310,7 +312,7 @@
d0 = d0 * 60.0D / 70.0D; d0 = d0 * 60.0D / 70.0D;
} }
@ -18,7 +18,7 @@
} }
} }
@@ -476,7 +478,7 @@ @@ -486,7 +488,7 @@
} }
} else if (this.field_78531_r.field_71462_r != null) { } else if (this.field_78531_r.field_71462_r != null) {
try { try {
@ -27,10 +27,10 @@
} catch (Throwable throwable) { } catch (Throwable throwable) {
CrashReport crashreport1 = CrashReport.func_85055_a(throwable, "Rendering screen"); CrashReport crashreport1 = CrashReport.func_85055_a(throwable, "Rendering screen");
CrashReportCategory crashreportcategory1 = crashreport1.func_85058_a("Screen render details"); CrashReportCategory crashreportcategory1 = crashreport1.func_85058_a("Screen render details");
@@ -589,9 +591,16 @@ @@ -595,9 +597,16 @@
Matrix4f matrix4f = matrixstack.func_227866_c_().func_227870_a_(); Matrix4f matrix4f = matrixstack.func_227866_c_().func_227870_a_();
this.func_228379_a_(matrix4f); this.func_228379_a_(matrix4f);
activerenderinfo.func_216772_a(this.field_78531_r.field_71441_e, (Entity)(this.field_78531_r.func_175606_aa() == null ? this.field_78531_r.field_71439_g : this.field_78531_r.func_175606_aa()), this.field_78531_r.field_71474_y.field_74320_O > 0, this.field_78531_r.field_71474_y.field_74320_O == 2, p_228378_1_); activerenderinfo.func_216772_a(this.field_78531_r.field_71441_e, (Entity)(this.field_78531_r.func_175606_aa() == null ? this.field_78531_r.field_71439_g : this.field_78531_r.func_175606_aa()), !this.field_78531_r.field_71474_y.func_243230_g().func_243192_a(), this.field_78531_r.field_71474_y.func_243230_g().func_243193_b(), p_228378_1_);
+ +
+ net.minecraftforge.client.event.EntityViewRenderEvent.CameraSetup cameraSetup = net.minecraftforge.client.ForgeHooksClient.onCameraSetup(this, activerenderinfo, p_228378_1_); + net.minecraftforge.client.event.EntityViewRenderEvent.CameraSetup cameraSetup = net.minecraftforge.client.ForgeHooksClient.onCameraSetup(this, activerenderinfo, p_228378_1_);
+ activerenderinfo.setAnglesInternal(cameraSetup.getYaw(), cameraSetup.getPitch()); + activerenderinfo.setAnglesInternal(cameraSetup.getYaw(), cameraSetup.getPitch());
@ -44,7 +44,7 @@
this.field_78531_r.func_213239_aq().func_219895_b("hand"); this.field_78531_r.func_213239_aq().func_219895_b("hand");
if (this.field_175074_C) { if (this.field_175074_C) {
RenderSystem.clear(256, Minecraft.field_142025_a); RenderSystem.clear(256, Minecraft.field_142025_a);
@@ -671,4 +680,9 @@ @@ -709,4 +718,9 @@
public OverlayTexture func_228385_m_() { public OverlayTexture func_228385_m_() {
return this.field_228375_t_; return this.field_228375_t_;
} }

View File

@ -39,7 +39,7 @@
} }
p_229111_4_.func_227865_b_(); p_229111_4_.func_227865_b_();
@@ -172,7 +174,7 @@ @@ -176,7 +178,7 @@
float f = (float)(i >> 16 & 255) / 255.0F; float f = (float)(i >> 16 & 255) / 255.0F;
float f1 = (float)(i >> 8 & 255) / 255.0F; float f1 = (float)(i >> 8 & 255) / 255.0F;
float f2 = (float)(i & 255) / 255.0F; float f2 = (float)(i & 255) / 255.0F;
@ -48,7 +48,7 @@
} }
} }
@@ -263,6 +265,7 @@ @@ -267,6 +269,7 @@
crashreportcategory.func_189529_a("Item Type", () -> { crashreportcategory.func_189529_a("Item Type", () -> {
return String.valueOf((Object)p_239387_2_.func_77973_b()); return String.valueOf((Object)p_239387_2_.func_77973_b());
}); });
@ -56,7 +56,7 @@
crashreportcategory.func_189529_a("Item Damage", () -> { crashreportcategory.func_189529_a("Item Damage", () -> {
return String.valueOf(p_239387_2_.func_77952_i()); return String.valueOf(p_239387_2_.func_77952_i());
}); });
@@ -294,18 +297,16 @@ @@ -298,18 +301,16 @@
irendertypebuffer$impl.func_228461_a_(); irendertypebuffer$impl.func_228461_a_();
} }
@ -79,7 +79,7 @@
this.func_181565_a(bufferbuilder, p_180453_3_ + 2, p_180453_4_ + 13, 13, 2, 0, 0, 0, 255); this.func_181565_a(bufferbuilder, p_180453_3_ + 2, p_180453_4_ + 13, 13, 2, 0, 0, 0, 255);
this.func_181565_a(bufferbuilder, p_180453_3_ + 2, p_180453_4_ + 13, i, 1, j >> 16 & 255, j >> 8 & 255, j & 255, 255); this.func_181565_a(bufferbuilder, p_180453_3_ + 2, p_180453_4_ + 13, i, 1, j >> 16 & 255, j >> 8 & 255, j & 255, 255);
RenderSystem.enableBlend(); RenderSystem.enableBlend();
@@ -343,4 +344,9 @@ @@ -347,4 +348,9 @@
public void func_195410_a(IResourceManager p_195410_1_) { public void func_195410_a(IResourceManager p_195410_1_) {
this.field_175059_m.func_178085_b(); this.field_175059_m.func_178085_b();
} }

View File

@ -1,11 +0,0 @@
--- a/net/minecraft/client/renderer/RenderState.java
+++ b/net/minecraft/client/renderer/RenderState.java
@@ -255,7 +255,7 @@
private final float field_228574_Q_;
public AlphaState(float p_i225974_1_) {
- super("alpha", () -> {
+ super("alpha", () -> { // FORGE: fix MC-167447
if (p_i225974_1_ > 0.0F) {
RenderSystem.enableAlphaTest();
RenderSystem.alphaFunc(516, p_i225974_1_);

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/WorldRenderer.java --- a/net/minecraft/client/renderer/WorldRenderer.java
+++ b/net/minecraft/client/renderer/WorldRenderer.java +++ b/net/minecraft/client/renderer/WorldRenderer.java
@@ -812,7 +812,7 @@ @@ -830,7 +830,7 @@
this.field_147595_R = true; this.field_147595_R = true;
BlockPos blockpos2 = chunkrenderdispatcher$chunkrender4.func_178568_j().func_177982_a(8, 8, 8); BlockPos blockpos2 = chunkrenderdispatcher$chunkrender4.func_178568_j().func_177982_a(8, 8, 8);
boolean flag1 = blockpos2.func_177951_i(blockpos) < 768.0D; boolean flag1 = blockpos2.func_177951_i(blockpos) < 768.0D;
@ -9,7 +9,7 @@
this.field_175009_l.add(chunkrenderdispatcher$chunkrender4); this.field_175009_l.add(chunkrenderdispatcher$chunkrender4);
} else { } else {
this.field_72777_q.func_213239_aq().func_76320_a("build near"); this.field_72777_q.func_213239_aq().func_76320_a("build near");
@@ -897,13 +897,13 @@ @@ -915,13 +915,13 @@
float f = p_228426_7_.func_205001_m(); float f = p_228426_7_.func_205001_m();
boolean flag1 = this.field_72777_q.field_71441_e.func_239132_a_().func_230493_a_(MathHelper.func_76128_c(d0), MathHelper.func_76128_c(d1)) || this.field_72777_q.field_71456_v.func_184046_j().func_184056_f(); boolean flag1 = this.field_72777_q.field_71441_e.func_239132_a_().func_230493_a_(MathHelper.func_76128_c(d0), MathHelper.func_76128_c(d1)) || this.field_72777_q.field_71456_v.func_184046_j().func_184056_f();
if (this.field_72777_q.field_71474_y.field_151451_c >= 4) { if (this.field_72777_q.field_71474_y.field_151451_c >= 4) {
@ -25,7 +25,7 @@
iprofiler.func_219895_b("terrain_setup"); iprofiler.func_219895_b("terrain_setup");
this.func_228437_a_(p_228426_6_, clippinghelper, flag, this.field_228409_ai_++, this.field_72777_q.field_71439_g.func_175149_v()); this.func_228437_a_(p_228426_6_, clippinghelper, flag, this.field_228409_ai_++, this.field_72777_q.field_71439_g.func_175149_v());
iprofiler.func_219895_b("updatechunks"); iprofiler.func_219895_b("updatechunks");
@@ -924,7 +924,9 @@ @@ -942,7 +942,9 @@
this.func_174967_a(p_228426_3_ + l1); this.func_174967_a(p_228426_3_ + l1);
iprofiler.func_219895_b("terrain"); iprofiler.func_219895_b("terrain");
this.func_228441_a_(RenderType.func_228639_c_(), p_228426_1_, d0, d1, d2); this.func_228441_a_(RenderType.func_228639_c_(), p_228426_1_, d0, d1, d2);
@ -35,7 +35,7 @@
this.func_228441_a_(RenderType.func_228643_e_(), p_228426_1_, d0, d1, d2); this.func_228441_a_(RenderType.func_228643_e_(), p_228426_1_, d0, d1, d2);
if (this.field_72769_h.func_239132_a_().func_239217_c_()) { if (this.field_72769_h.func_239132_a_().func_239217_c_()) {
RenderHelper.func_237533_a_(p_228426_1_.func_227866_c_().func_227870_a_()); RenderHelper.func_237533_a_(p_228426_1_.func_227866_c_().func_227870_a_());
@@ -994,6 +996,7 @@ @@ -1010,6 +1012,7 @@
List<TileEntity> list = worldrenderer$localrenderinformationcontainer.field_178036_a.func_178571_g().func_178485_b(); List<TileEntity> list = worldrenderer$localrenderinformationcontainer.field_178036_a.func_178571_g().func_178485_b();
if (!list.isEmpty()) { if (!list.isEmpty()) {
for(TileEntity tileentity1 : list) { for(TileEntity tileentity1 : list) {
@ -43,7 +43,7 @@
BlockPos blockpos3 = tileentity1.func_174877_v(); BlockPos blockpos3 = tileentity1.func_174877_v();
IRenderTypeBuffer irendertypebuffer1 = irendertypebuffer$impl; IRenderTypeBuffer irendertypebuffer1 = irendertypebuffer$impl;
p_228426_1_.func_227860_a_(); p_228426_1_.func_227860_a_();
@@ -1019,6 +1022,7 @@ @@ -1035,6 +1038,7 @@
synchronized(this.field_181024_n) { synchronized(this.field_181024_n) {
for(TileEntity tileentity : this.field_181024_n) { for(TileEntity tileentity : this.field_181024_n) {
@ -51,7 +51,7 @@
BlockPos blockpos2 = tileentity.func_174877_v(); BlockPos blockpos2 = tileentity.func_174877_v();
p_228426_1_.func_227860_a_(); p_228426_1_.func_227860_a_();
p_228426_1_.func_227861_a_((double)blockpos2.func_177958_n() - d0, (double)blockpos2.func_177956_o() - d1, (double)blockpos2.func_177952_p() - d2); p_228426_1_.func_227861_a_((double)blockpos2.func_177958_n() - d0, (double)blockpos2.func_177956_o() - d1, (double)blockpos2.func_177952_p() - d2);
@@ -1069,7 +1073,8 @@ @@ -1084,7 +1088,8 @@
iprofiler.func_219895_b("outline"); iprofiler.func_219895_b("outline");
BlockPos blockpos = ((BlockRayTraceResult)raytraceresult).func_216350_a(); BlockPos blockpos = ((BlockRayTraceResult)raytraceresult).func_216350_a();
BlockState blockstate = this.field_72769_h.func_180495_p(blockpos); BlockState blockstate = this.field_72769_h.func_180495_p(blockpos);
@ -61,7 +61,7 @@
IVertexBuilder ivertexbuilder2 = irendertypebuffer$impl.getBuffer(RenderType.func_228659_m_()); IVertexBuilder ivertexbuilder2 = irendertypebuffer$impl.getBuffer(RenderType.func_228659_m_());
this.func_228429_a_(p_228426_1_, ivertexbuilder2, p_228426_6_.func_216773_g(), d0, d1, d2, blockpos, blockstate); this.func_228429_a_(p_228426_1_, ivertexbuilder2, p_228426_6_.func_216773_g(), d0, d1, d2, blockpos, blockstate);
} }
@@ -2056,7 +2061,12 @@ @@ -2076,7 +2081,12 @@
this.field_175008_n.func_217628_a(p_215319_1_, p_215319_2_, p_215319_3_, p_215319_4_); this.field_175008_n.func_217628_a(p_215319_1_, p_215319_2_, p_215319_3_, p_215319_4_);
} }
@ -74,7 +74,7 @@
ISound isound = this.field_147593_P.get(p_184377_2_); ISound isound = this.field_147593_P.get(p_184377_2_);
if (isound != null) { if (isound != null) {
this.field_72777_q.func_147118_V().func_147683_b(isound); this.field_72777_q.func_147118_V().func_147683_b(isound);
@@ -2064,7 +2074,7 @@ @@ -2084,7 +2094,7 @@
} }
if (p_184377_1_ != null) { if (p_184377_1_ != null) {
@ -83,7 +83,7 @@
if (musicdiscitem != null) { if (musicdiscitem != null) {
this.field_72777_q.field_71456_v.func_238451_a_(musicdiscitem.func_234801_g_()); this.field_72777_q.field_71456_v.func_238451_a_(musicdiscitem.func_234801_g_());
} }
@@ -2212,7 +2222,7 @@ @@ -2232,7 +2242,7 @@
break; break;
case 1010: case 1010:
if (Item.func_150899_d(p_180439_4_) instanceof MusicDiscItem) { if (Item.func_150899_d(p_180439_4_) instanceof MusicDiscItem) {
@ -92,7 +92,7 @@
} else { } else {
this.func_184377_a((SoundEvent)null, p_180439_3_); this.func_184377_a((SoundEvent)null, p_180439_3_);
} }
@@ -2362,8 +2372,8 @@ @@ -2382,8 +2392,8 @@
break; break;
case 2001: case 2001:
BlockState blockstate = Block.func_196257_b(p_180439_4_); BlockState blockstate = Block.func_196257_b(p_180439_4_);
@ -103,7 +103,7 @@
this.field_72769_h.func_184156_a(p_180439_3_, soundtype.func_185845_c(), SoundCategory.BLOCKS, (soundtype.func_185843_a() + 1.0F) / 2.0F, soundtype.func_185847_b() * 0.8F, false); this.field_72769_h.func_184156_a(p_180439_3_, soundtype.func_185845_c(), SoundCategory.BLOCKS, (soundtype.func_185843_a() + 1.0F) / 2.0F, soundtype.func_185847_b() * 0.8F, false);
} }
@@ -2511,7 +2521,7 @@ @@ -2531,7 +2541,7 @@
} else { } else {
int i = p_228420_0_.func_226658_a_(LightType.SKY, p_228420_2_); int i = p_228420_0_.func_226658_a_(LightType.SKY, p_228420_2_);
int j = p_228420_0_.func_226658_a_(LightType.BLOCK, p_228420_2_); int j = p_228420_0_.func_226658_a_(LightType.BLOCK, p_228420_2_);
@ -112,7 +112,7 @@
if (j < k) { if (j < k) {
j = k; j = k;
} }
@@ -2550,6 +2560,11 @@ @@ -2570,6 +2580,11 @@
return this.field_239226_J_; return this.field_239226_J_;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/entity/EntityRendererManager.java --- a/net/minecraft/client/renderer/entity/EntityRendererManager.java
+++ b/net/minecraft/client/renderer/entity/EntityRendererManager.java +++ b/net/minecraft/client/renderer/entity/EntityRendererManager.java
@@ -187,7 +187,10 @@ @@ -188,7 +188,10 @@
this.field_178637_m = new PlayerRenderer(this); this.field_178637_m = new PlayerRenderer(this);
this.field_178636_l.put("default", this.field_178637_m); this.field_178636_l.put("default", this.field_178637_m);
this.field_178636_l.put("slim", new PlayerRenderer(this, true)); this.field_178636_l.put("slim", new PlayerRenderer(this, true));
@ -11,7 +11,7 @@
for(EntityType<?> entitytype : Registry.field_212629_r) { for(EntityType<?> entitytype : Registry.field_212629_r) {
if (entitytype != EntityType.field_200729_aH && !this.field_78729_o.containsKey(entitytype)) { if (entitytype != EntityType.field_200729_aH && !this.field_78729_o.containsKey(entitytype)) {
throw new IllegalStateException("No renderer registered for " + Registry.field_212629_r.func_177774_c(entitytype)); throw new IllegalStateException("No renderer registered for " + Registry.field_212629_r.func_177774_c(entitytype));
@@ -449,4 +452,8 @@ @@ -450,4 +453,8 @@
public FontRenderer func_78716_a() { public FontRenderer func_78716_a() {
return this.field_78736_p; return this.field_78736_p;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/entity/layers/ElytraLayer.java --- a/net/minecraft/client/renderer/entity/layers/ElytraLayer.java
+++ b/net/minecraft/client/renderer/entity/layers/ElytraLayer.java +++ b/net/minecraft/client/renderer/entity/layers/ElytraLayer.java
@@ -29,7 +29,7 @@ @@ -30,7 +30,7 @@
public void func_225628_a_(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) { public void func_225628_a_(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) {
ItemStack itemstack = p_225628_4_.func_184582_a(EquipmentSlotType.CHEST); ItemStack itemstack = p_225628_4_.func_184582_a(EquipmentSlotType.CHEST);
@ -9,7 +9,7 @@
ResourceLocation resourcelocation; ResourceLocation resourcelocation;
if (p_225628_4_ instanceof AbstractClientPlayerEntity) { if (p_225628_4_ instanceof AbstractClientPlayerEntity) {
AbstractClientPlayerEntity abstractclientplayerentity = (AbstractClientPlayerEntity)p_225628_4_; AbstractClientPlayerEntity abstractclientplayerentity = (AbstractClientPlayerEntity)p_225628_4_;
@@ -38,10 +38,10 @@ @@ -39,10 +39,10 @@
} else if (abstractclientplayerentity.func_152122_n() && abstractclientplayerentity.func_110303_q() != null && abstractclientplayerentity.func_175148_a(PlayerModelPart.CAPE)) { } else if (abstractclientplayerentity.func_152122_n() && abstractclientplayerentity.func_110303_q() != null && abstractclientplayerentity.func_175148_a(PlayerModelPart.CAPE)) {
resourcelocation = abstractclientplayerentity.func_110303_q(); resourcelocation = abstractclientplayerentity.func_110303_q();
} else { } else {
@ -22,7 +22,7 @@
} }
p_225628_1_.func_227860_a_(); p_225628_1_.func_227860_a_();
@@ -53,4 +53,29 @@ @@ -54,4 +54,29 @@
p_225628_1_.func_227865_b_(); p_225628_1_.func_227865_b_();
} }
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/renderer/texture/TextureManager.java --- a/net/minecraft/client/renderer/texture/TextureManager.java
+++ b/net/minecraft/client/renderer/texture/TextureManager.java +++ b/net/minecraft/client/renderer/texture/TextureManager.java
@@ -145,6 +145,7 @@ @@ -157,6 +157,7 @@
public void func_147645_c(ResourceLocation p_147645_1_) { public void func_147645_c(ResourceLocation p_147645_1_) {
Texture texture = this.func_229267_b_(p_147645_1_); Texture texture = this.func_229267_b_(p_147645_1_);
if (texture != null) { if (texture != null) {

View File

@ -1,10 +1,10 @@
--- a/net/minecraft/client/resources/ClientLanguageMap.java --- a/net/minecraft/client/resources/ClientLanguageMap.java
+++ b/net/minecraft/client/resources/ClientLanguageMap.java +++ b/net/minecraft/client/resources/ClientLanguageMap.java
@@ -116,4 +116,9 @@ @@ -78,4 +78,9 @@
return p_239500_1_; public IReorderingProcessor func_241870_a(ITextProperties p_241870_1_) {
} return BidiReorderer.func_243508_a(p_241870_1_, this.field_239496_d_);
} }
+ +
+ @Override + @Override
+ public Map<String, String> getLanguageData() { + public Map<String, String> getLanguageData() {
+ return field_239495_c_; + return field_239495_c_;

View File

@ -1,28 +0,0 @@
--- a/net/minecraft/client/resources/ClientResourcePackInfo.java
+++ b/net/minecraft/client/resources/ClientResourcePackInfo.java
@@ -24,13 +24,23 @@
@Nullable
private ResourceLocation field_195810_b;
+ @Deprecated
public ClientResourcePackInfo(String p_i232485_1_, boolean p_i232485_2_, Supplier<IResourcePack> p_i232485_3_, IResourcePack p_i232485_4_, PackMetadataSection p_i232485_5_, ResourcePackInfo.Priority p_i232485_6_, IPackNameDecorator p_i232485_7_) {
- super(p_i232485_1_, p_i232485_2_, p_i232485_3_, p_i232485_4_, p_i232485_5_, p_i232485_6_, p_i232485_7_);
+ this(p_i232485_1_, p_i232485_2_, p_i232485_3_, p_i232485_4_, p_i232485_5_, p_i232485_6_, p_i232485_7_, false);
+ }
+
+ public ClientResourcePackInfo(String p_i232485_1_, boolean p_i232485_2_, Supplier<IResourcePack> p_i232485_3_, IResourcePack p_i232485_4_, PackMetadataSection p_i232485_5_, ResourcePackInfo.Priority p_i232485_6_, IPackNameDecorator p_i232485_7_, boolean hidden) {
+ super(p_i232485_1_, p_i232485_2_, p_i232485_3_, p_i232485_4_, p_i232485_5_, p_i232485_6_, p_i232485_7_, hidden);
this.field_195809_a = func_239491_a_(p_i232485_4_);
}
+ @Deprecated
public ClientResourcePackInfo(String p_i232486_1_, boolean p_i232486_2_, Supplier<IResourcePack> p_i232486_3_, ITextComponent p_i232486_4_, ITextComponent p_i232486_5_, PackCompatibility p_i232486_6_, ResourcePackInfo.Priority p_i232486_7_, boolean p_i232486_8_, IPackNameDecorator p_i232486_9_, @Nullable NativeImage p_i232486_10_) {
- super(p_i232486_1_, p_i232486_2_, p_i232486_3_, p_i232486_4_, p_i232486_5_, p_i232486_6_, p_i232486_7_, p_i232486_8_, p_i232486_9_);
+ this(p_i232486_1_, p_i232486_2_, p_i232486_3_, p_i232486_4_, p_i232486_5_, p_i232486_6_, p_i232486_7_, p_i232486_8_, p_i232486_9_, p_i232486_10_, false);
+ }
+
+ public ClientResourcePackInfo(String p_i232486_1_, boolean p_i232486_2_, Supplier<IResourcePack> p_i232486_3_, ITextComponent p_i232486_4_, ITextComponent p_i232486_5_, PackCompatibility p_i232486_6_, ResourcePackInfo.Priority p_i232486_7_, boolean p_i232486_8_, IPackNameDecorator p_i232486_9_, @Nullable NativeImage p_i232486_10_, boolean hidden) {
+ super(p_i232486_1_, p_i232486_2_, p_i232486_3_, p_i232486_4_, p_i232486_5_, p_i232486_6_, p_i232486_7_, p_i232486_8_, p_i232486_9_, hidden);
this.field_195809_a = p_i232486_10_;
}

View File

@ -26,11 +26,10 @@
} }
this.func_147611_b(); this.func_147611_b();
@@ -280,4 +290,30 @@ @@ -281,6 +291,32 @@
GlStateManager.func_227658_a_(i, p_216493_1_);
this.func_147609_e(); this.func_147609_e();
} }
+
+ +
+ /*================================ FORGE START ================================================*/ + /*================================ FORGE START ================================================*/
+ private boolean stencilEnabled = false; + private boolean stencilEnabled = false;
@ -56,4 +55,7 @@
+ return this.stencilEnabled; + return this.stencilEnabled;
+ } + }
+ /*================================ FORGE END ================================================*/ + /*================================ FORGE END ================================================*/
} +
public int func_242996_f() {
return this.field_147617_g;
}

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/client/shader/ShaderGroup.java --- a/net/minecraft/client/shader/ShaderGroup.java
+++ b/net/minecraft/client/shader/ShaderGroup.java +++ b/net/minecraft/client/shader/ShaderGroup.java
@@ -157,7 +157,8 @@ @@ -164,7 +164,8 @@
throw new JSONException("Render target '" + s4 + "' can't be used as depth buffer"); throw new JSONException("Render target '" + s4 + "' can't be used as depth buffer");
} }

View File

@ -10,7 +10,7 @@
this.field_216556_l = p_i50988_2_; this.field_216556_l = p_i50988_2_;
IResource iresource = null; IResource iresource = null;
@@ -142,7 +143,8 @@ @@ -149,7 +150,8 @@
public static ShaderLoader func_216542_a(IResourceManager p_216542_0_, ShaderLoader.ShaderType p_216542_1_, String p_216542_2_) throws IOException { public static ShaderLoader func_216542_a(IResourceManager p_216542_0_, ShaderLoader.ShaderType p_216542_1_, String p_216542_2_) throws IOException {
ShaderLoader shaderloader = p_216542_1_.func_148064_d().get(p_216542_2_); ShaderLoader shaderloader = p_216542_1_.func_148064_d().get(p_216542_2_);
if (shaderloader == null) { if (shaderloader == null) {

View File

@ -1,7 +1,7 @@
--- a/net/minecraft/client/world/ClientWorld.java --- a/net/minecraft/client/world/ClientWorld.java
+++ b/net/minecraft/client/world/ClientWorld.java +++ b/net/minecraft/client/world/ClientWorld.java
@@ -103,6 +103,8 @@ @@ -104,6 +104,8 @@
this.func_239136_a_(new BlockPos(8, 64, 8)); this.func_239136_a_(new BlockPos(8, 64, 8), 0.0F);
this.func_72966_v(); this.func_72966_v();
this.func_72947_a(); this.func_72947_a();
+ this.gatherCapabilities(); + this.gatherCapabilities();
@ -9,7 +9,7 @@
} }
public DimensionRenderInfo func_239132_a_() { public DimensionRenderInfo func_239132_a_() {
@@ -185,6 +187,7 @@ @@ -186,6 +188,7 @@
this.func_217381_Z().func_194340_a(() -> { this.func_217381_Z().func_194340_a(() -> {
return Registry.field_212629_r.func_177774_c(p_217418_1_.func_200600_R()).toString(); return Registry.field_212629_r.func_177774_c(p_217418_1_.func_200600_R()).toString();
}); });
@ -17,7 +17,7 @@
p_217418_1_.func_70071_h_(); p_217418_1_.func_70071_h_();
this.func_217381_Z().func_76319_b(); this.func_217381_Z().func_76319_b();
} }
@@ -284,9 +287,11 @@ @@ -285,9 +288,11 @@
} }
private void func_217424_b(int p_217424_1_, Entity p_217424_2_) { private void func_217424_b(int p_217424_1_, Entity p_217424_2_) {
@ -29,7 +29,7 @@
} }
public void func_217413_d(int p_217413_1_) { public void func_217413_d(int p_217413_1_) {
@@ -305,6 +310,8 @@ @@ -306,6 +311,8 @@
} }
this.field_217431_w.remove(p_217414_1_); this.field_217431_w.remove(p_217414_1_);
@ -38,7 +38,7 @@
} }
public void func_217417_b(Chunk p_217417_1_) { public void func_217417_b(Chunk p_217417_1_) {
@@ -447,6 +454,11 @@ @@ -448,6 +455,11 @@
} }
public void func_184148_a(@Nullable PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_) { public void func_184148_a(@Nullable PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_) {
@ -50,7 +50,7 @@
if (p_184148_1_ == this.field_73037_M.field_71439_g) { if (p_184148_1_ == this.field_73037_M.field_71439_g) {
this.func_184134_a(p_184148_2_, p_184148_4_, p_184148_6_, p_184148_8_, p_184148_9_, p_184148_10_, p_184148_11_, false); this.func_184134_a(p_184148_2_, p_184148_4_, p_184148_6_, p_184148_8_, p_184148_9_, p_184148_10_, p_184148_11_, false);
} }
@@ -454,6 +466,11 @@ @@ -455,6 +467,11 @@
} }
public void func_217384_a(@Nullable PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_) { public void func_217384_a(@Nullable PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/command/Commands.java --- a/net/minecraft/command/Commands.java
+++ b/net/minecraft/command/Commands.java +++ b/net/minecraft/command/Commands.java
@@ -183,6 +183,7 @@ @@ -186,6 +186,7 @@
if (p_i232148_1_.field_237219_d_) { if (p_i232148_1_.field_237219_d_) {
PublishCommand.func_198581_a(this.field_197062_b); PublishCommand.func_198581_a(this.field_197062_b);
} }
@ -8,7 +8,7 @@
this.field_197062_b.findAmbiguities((p_201302_1_, p_201302_2_, p_201302_3_, p_201302_4_) -> { this.field_197062_b.findAmbiguities((p_201302_1_, p_201302_2_, p_201302_3_, p_201302_4_) -> {
field_197061_a.warn("Ambiguity between arguments {} and {} with inputs: {}", this.field_197062_b.getPath(p_201302_2_), this.field_197062_b.getPath(p_201302_3_), p_201302_4_); field_197061_a.warn("Ambiguity between arguments {} and {} with inputs: {}", this.field_197062_b.getPath(p_201302_2_), this.field_197062_b.getPath(p_201302_3_), p_201302_4_);
@@ -202,6 +203,14 @@ @@ -205,6 +206,14 @@
try { try {
try { try {

View File

@ -1,15 +1,15 @@
--- a/net/minecraft/command/arguments/BlockStateParser.java --- a/net/minecraft/command/arguments/BlockStateParser.java
+++ b/net/minecraft/command/arguments/BlockStateParser.java +++ b/net/minecraft/command/arguments/BlockStateParser.java
@@ -170,7 +170,7 @@ @@ -169,7 +169,7 @@
private boolean func_212598_k(TagCollection<Block> p_212598_1_) { private boolean func_212598_k(ITagCollection<Block> p_212598_1_) {
if (this.field_197270_l != null) { if (this.field_197270_l != null) {
- return this.field_197270_l.func_177230_c().func_235695_q_(); - return this.field_197270_l.func_177230_c().func_235695_q_();
+ return this.field_197270_l.hasTileEntity(); + return this.field_197270_l.hasTileEntity();
} else { } else {
if (this.field_199833_p != null) { if (this.field_199833_p != null) {
ITag<Block> itag = p_212598_1_.func_199910_a(this.field_199833_p); ITag<Block> itag = p_212598_1_.func_199910_a(this.field_199833_p);
@@ -293,7 +293,7 @@ @@ -283,7 +283,7 @@
p_197255_1_.suggest(String.valueOf('[')); p_197255_1_.suggest(String.valueOf('['));
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/data/loot/EntityLootTables.java --- a/net/minecraft/data/loot/EntityLootTables.java
+++ b/net/minecraft/data/loot/EntityLootTables.java +++ b/net/minecraft/data/loot/EntityLootTables.java
@@ -51,7 +51,7 @@ @@ -50,7 +50,7 @@
return LootTable.func_216119_b().func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(p_218583_0_))).func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(TableLootEntry.func_216171_a(EntityType.field_200737_ac.func_220348_g()))); return LootTable.func_216119_b().func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(p_218583_0_))).func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(TableLootEntry.func_216171_a(EntityType.field_200737_ac.func_220348_g())));
} }
@ -9,31 +9,26 @@
this.func_218582_a(EntityType.field_200789_c, LootTable.func_216119_b()); this.func_218582_a(EntityType.field_200789_c, LootTable.func_216119_b());
this.func_218582_a(EntityType.field_200791_e, LootTable.func_216119_b()); this.func_218582_a(EntityType.field_200791_e, LootTable.func_216119_b());
this.func_218582_a(EntityType.field_226289_e_, LootTable.func_216119_b()); this.func_218582_a(EntityType.field_226289_e_, LootTable.func_216119_b());
@@ -141,8 +141,12 @@ @@ -141,11 +141,15 @@
this.func_218582_a(EntityType.field_233588_G_, LootTable.func_216119_b().func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151147_al).func_212841_b_(SetCount.func_215932_a(RandomValueRange.func_215837_a(2.0F, 4.0F))).func_212841_b_(Smelt.func_215953_b().func_212840_b_(EntityHasProperty.func_215999_a(LootContext.EntityTarget.THIS, field_218586_a))).func_212841_b_(LootingEnchantBonus.func_215915_a(RandomValueRange.func_215837_a(0.0F, 1.0F))))).func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151116_aA).func_212841_b_(SetCount.func_215932_a(RandomValueRange.func_215837_a(0.0F, 1.0F))).func_212841_b_(LootingEnchantBonus.func_215915_a(RandomValueRange.func_215837_a(0.0F, 1.0F))))));
this.func_218582_a(EntityType.field_233591_ai_, LootTable.func_216119_b()); this.func_218582_a(EntityType.field_233591_ai_, LootTable.func_216119_b());
this.func_218582_a(EntityType.field_242287_aj, LootTable.func_216119_b());
this.func_218582_a(EntityType.field_200727_aF, LootTable.func_216119_b().func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151078_bh).func_212841_b_(SetCount.func_215932_a(RandomValueRange.func_215837_a(0.0F, 2.0F))).func_212841_b_(LootingEnchantBonus.func_215915_a(RandomValueRange.func_215837_a(0.0F, 1.0F))))).func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151042_j)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151172_bF)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151174_bG)).func_212840_b_(KilledByPlayer.func_215994_b()).func_212840_b_(RandomChanceWithLooting.func_216003_a(0.025F, 0.01F)))); this.func_218582_a(EntityType.field_200727_aF, LootTable.func_216119_b().func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151078_bh).func_212841_b_(SetCount.func_215932_a(RandomValueRange.func_215837_a(0.0F, 2.0F))).func_212841_b_(LootingEnchantBonus.func_215915_a(RandomValueRange.func_215837_a(0.0F, 1.0F))))).func_216040_a(LootPool.func_216096_a().func_216046_a(ConstantRange.func_215835_a(1)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151042_j)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151172_bF)).func_216045_a(ItemLootEntry.func_216168_a(Items.field_151174_bG)).func_212840_b_(KilledByPlayer.func_215994_b()).func_212840_b_(RandomChanceWithLooting.func_216003_a(0.025F, 0.01F))));
+ } + }
+ +
+ public void accept(BiConsumer<ResourceLocation, LootTable.Builder> p_accept_1_) { + public void accept(BiConsumer<ResourceLocation, LootTable.Builder> p_accept_1_) {
+ this.addTables(); + this.addTables();
Set<ResourceLocation> set = Sets.newHashSet(); Set<ResourceLocation> set = Sets.newHashSet();
- Iterator iterator = Registry.field_212629_r.iterator();
+ Iterator iterator = getKnownEntities().iterator();
EntityType<?> entitytype; - for(EntityType<?> entitytype : Registry.field_212629_r) {
ResourceLocation resourcelocation; + for(EntityType<?> entitytype : getKnownEntities()) {
@@ -154,7 +158,7 @@ ResourceLocation resourcelocation = entitytype.func_220348_g();
entitytype = (EntityType)iterator.next();
resourcelocation = entitytype.func_220348_g();
- if (!field_222944_b.contains(entitytype) && entitytype.func_220339_d() == EntityClassification.MISC) { - if (!field_222944_b.contains(entitytype) && entitytype.func_220339_d() == EntityClassification.MISC) {
+ if (isNonLiving(entitytype)) { + if (isNonLiving(entitytype)) {
if (resourcelocation != LootTables.field_186419_a && this.field_218587_b.remove(resourcelocation) != null) { if (resourcelocation != LootTables.field_186419_a && this.field_218587_b.remove(resourcelocation) != null) {
break; throw new IllegalStateException(String.format("Weird loottable '%s' for '%s', not a LivingEntity so should not have loot", resourcelocation, Registry.field_212629_r.func_177774_c(entitytype)));
} }
@@ -171,6 +175,14 @@ @@ -162,6 +166,14 @@
throw new IllegalStateException(String.format("Weird loottable '%s' for '%s', not a LivingEntity so should not have loot", resourcelocation, Registry.field_212629_r.func_177774_c(entitytype))); this.field_218587_b.forEach(p_accept_1_::accept);
} }
+ protected Iterable<EntityType<?>> getKnownEntities() { + protected Iterable<EntityType<?>> getKnownEntities() {
@ -41,7 +36,7 @@
+ } + }
+ +
+ protected boolean isNonLiving(EntityType<?> entitytype) { + protected boolean isNonLiving(EntityType<?> entitytype) {
+ return !field_222944_b.contains(entitytype) && entitytype.func_220339_d() == EntityClassification.MISC; + return !field_222944_b.contains(entitytype) && entitytype.func_220339_d() == EntityClassification.MISC;
+ } + }
+ +
protected void func_218582_a(EntityType<?> p_218582_1_, LootTable.Builder p_218582_2_) { protected void func_218582_a(EntityType<?> p_218582_1_, LootTable.Builder p_218582_2_) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/dispenser/IDispenseItemBehavior.java --- a/net/minecraft/dispenser/IDispenseItemBehavior.java
+++ b/net/minecraft/dispenser/IDispenseItemBehavior.java +++ b/net/minecraft/dispenser/IDispenseItemBehavior.java
@@ -371,8 +371,9 @@ @@ -373,8 +373,9 @@
world.func_175656_a(blockpos, AbstractFireBlock.func_235326_a_(world, blockpos)); world.func_175656_a(blockpos, AbstractFireBlock.func_235326_a_(world, blockpos));
} else if (CampfireBlock.func_241470_h_(blockstate)) { } else if (CampfireBlock.func_241470_h_(blockstate)) {
world.func_175656_a(blockpos, blockstate.func_206870_a(BlockStateProperties.field_208190_q, Boolean.valueOf(true))); world.func_175656_a(blockpos, blockstate.func_206870_a(BlockStateProperties.field_208190_q, Boolean.valueOf(true)));

View File

@ -9,7 +9,7 @@
BlockState blockstate2 = p_185266_1_.func_180495_p(blockpos); BlockState blockstate2 = p_185266_1_.func_180495_p(blockpos);
- if (blockstate2.func_185904_a() == Material.field_151586_h && blockstate2.func_177229_b(FlowingFluidBlock.field_176367_b) == 0 && blockstate.func_196955_c(p_185266_1_, blockpos) && p_185266_1_.func_226663_a_(blockstate, blockpos, ISelectionContext.func_216377_a())) { - if (blockstate2.func_185904_a() == Material.field_151586_h && blockstate2.func_177229_b(FlowingFluidBlock.field_176367_b) == 0 && blockstate.func_196955_c(p_185266_1_, blockpos) && p_185266_1_.func_226663_a_(blockstate, blockpos, ISelectionContext.func_216377_a())) {
+ boolean isFull = blockstate2.func_177230_c() == Blocks.field_150355_j && blockstate2.func_177229_b(FlowingFluidBlock.field_176367_b) == 0; //TODO: Forge, modded waters? + boolean isFull = blockstate2.func_177230_c() == Blocks.field_150355_j && blockstate2.func_177229_b(FlowingFluidBlock.field_176367_b) == 0; //TODO: Forge, modded waters?
+ if (blockstate2.func_185904_a() == Material.field_151586_h && isFull && blockstate.func_196955_c(p_185266_1_, blockpos) && p_185266_1_.func_226663_a_(blockstate, blockpos, ISelectionContext.func_216377_a()) && !net.minecraftforge.event.ForgeEventFactory.onBlockPlace(p_185266_0_, net.minecraftforge.common.util.BlockSnapshot.create(p_185266_1_, blockpos), net.minecraft.util.Direction.UP)) { + if (blockstate2.func_185904_a() == Material.field_151586_h && isFull && blockstate.func_196955_c(p_185266_1_, blockpos) && p_185266_1_.func_226663_a_(blockstate, blockpos, ISelectionContext.func_216377_a()) && !net.minecraftforge.event.ForgeEventFactory.onBlockPlace(p_185266_0_, net.minecraftforge.common.util.BlockSnapshot.create(p_185266_1_.func_234923_W_(), p_185266_1_, blockpos), net.minecraft.util.Direction.UP)) {
p_185266_1_.func_175656_a(blockpos, blockstate); p_185266_1_.func_175656_a(blockpos, blockstate);
p_185266_1_.func_205220_G_().func_205360_a(blockpos, Blocks.field_185778_de, MathHelper.func_76136_a(p_185266_0_.func_70681_au(), 60, 120)); p_185266_1_.func_205220_G_().func_205360_a(blockpos, Blocks.field_185778_de, MathHelper.func_76136_a(p_185266_0_.func_70681_au(), 60, 120));
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/Entity.java --- a/net/minecraft/entity/Entity.java
+++ b/net/minecraft/entity/Entity.java +++ b/net/minecraft/entity/Entity.java
@@ -107,12 +107,13 @@ @@ -109,12 +109,13 @@
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
@ -15,7 +15,7 @@
private final EntityType<?> field_200606_g; private final EntityType<?> field_200606_g;
private int field_145783_c = field_213331_b.incrementAndGet(); private int field_145783_c = field_213331_b.incrementAndGet();
public boolean field_70156_m; public boolean field_70156_m;
@@ -138,6 +139,7 @@ @@ -140,6 +141,7 @@
public boolean field_70124_G; public boolean field_70124_G;
public boolean field_70133_I; public boolean field_70133_I;
protected Vector3d field_213328_B = Vector3d.field_186680_a; protected Vector3d field_213328_B = Vector3d.field_186680_a;
@ -23,7 +23,7 @@
public boolean field_70128_L; public boolean field_70128_L;
public float field_70141_P; public float field_70141_P;
public float field_70140_Q; public float field_70140_Q;
@@ -198,6 +200,7 @@ @@ -195,6 +197,7 @@
private float field_213326_aJ; private float field_213326_aJ;
public Entity(EntityType<?> p_i48580_1_, World p_i48580_2_) { public Entity(EntityType<?> p_i48580_1_, World p_i48580_2_) {
@ -31,7 +31,7 @@
this.field_200606_g = p_i48580_1_; this.field_200606_g = p_i48580_1_;
this.field_70170_p = p_i48580_2_; this.field_70170_p = p_i48580_2_;
this.field_213325_aI = p_i48580_1_.func_220334_j(); this.field_213325_aI = p_i48580_1_.func_220334_j();
@@ -213,7 +216,9 @@ @@ -211,7 +214,9 @@
this.field_70180_af.func_187214_a(field_189655_aD, false); this.field_70180_af.func_187214_a(field_189655_aD, false);
this.field_70180_af.func_187214_a(field_213330_X, Pose.STANDING); this.field_70180_af.func_187214_a(field_213330_X, Pose.STANDING);
this.func_70088_a(); this.func_70088_a();
@ -42,7 +42,7 @@
} }
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
@@ -305,7 +310,13 @@ @@ -317,7 +322,13 @@
} }
public void func_70106_y() { public void func_70106_y() {
@ -58,13 +58,13 @@
public void func_213301_b(Pose p_213301_1_) { public void func_213301_b(Pose p_213301_1_) {
@@ -330,6 +341,7 @@ @@ -330,6 +341,7 @@
public void func_70107_b(double p_70107_1_, double p_70107_3_, double p_70107_5_) { public boolean func_233562_a_(Entity p_233562_1_, double p_233562_2_) {
this.func_226288_n_(p_70107_1_, p_70107_3_, p_70107_5_); double d0 = p_233562_1_.field_233557_ao_.field_72450_a - this.field_233557_ao_.field_72450_a;
+ if (this.isAddedToWorld() && !this.field_70170_p.field_72995_K && field_70170_p instanceof ServerWorld) ((ServerWorld)this.field_70170_p).func_217464_b(this); // Forge - Process chunk registration after moving. + if (this.isAddedToWorld() && !this.field_70170_p.field_72995_K && field_70170_p instanceof ServerWorld) ((ServerWorld)this.field_70170_p).func_217464_b(this); // Forge - Process chunk registration after moving.
float f = this.field_213325_aI.field_220315_a / 2.0F; double d1 = p_233562_1_.field_233557_ao_.field_72448_b - this.field_233557_ao_.field_72448_b;
float f1 = this.field_213325_aI.field_220316_b; double d2 = p_233562_1_.field_233557_ao_.field_72449_c - this.field_233557_ao_.field_72449_c;
this.func_174826_a(new AxisAlignedBB(p_70107_1_ - (double)f, p_70107_3_, p_70107_5_ - (double)f, p_70107_1_ + (double)f, p_70107_3_ + (double)f1, p_70107_5_ + (double)f)); return d0 * d0 + d1 * d1 + d2 * d2 < p_233562_2_ * p_233562_2_;
@@ -542,7 +554,7 @@ @@ -560,7 +572,7 @@
this.field_70140_Q = (float)((double)this.field_70140_Q + (double)MathHelper.func_76133_a(func_213296_b(vector3d)) * 0.6D); this.field_70140_Q = (float)((double)this.field_70140_Q + (double)MathHelper.func_76133_a(func_213296_b(vector3d)) * 0.6D);
this.field_82151_R = (float)((double)this.field_82151_R + (double)MathHelper.func_76133_a(d0 * d0 + d1 * d1 + d2 * d2) * 0.6D); this.field_82151_R = (float)((double)this.field_82151_R + (double)MathHelper.func_76133_a(d0 * d0 + d1 * d1 + d2 * d2) * 0.6D);
@ -73,7 +73,7 @@
this.field_70150_b = this.func_203009_ad(); this.field_70150_b = this.func_203009_ad();
if (this.func_70090_H()) { if (this.func_70090_H()) {
Entity entity = this.func_184207_aI() && this.func_184179_bs() != null ? this.func_184179_bs() : this; Entity entity = this.func_184207_aI() && this.func_184179_bs() != null ? this.func_184179_bs() : this;
@@ -557,7 +569,7 @@ @@ -575,7 +587,7 @@
} else { } else {
this.func_180429_a(blockpos, blockstate); this.func_180429_a(blockpos, blockstate);
} }
@ -82,7 +82,7 @@
this.field_191959_ay = this.func_191954_d(this.field_82151_R); this.field_191959_ay = this.func_191954_d(this.field_82151_R);
} }
} }
@@ -574,8 +586,9 @@ @@ -591,8 +603,9 @@
float f2 = this.func_225515_ai_(); float f2 = this.func_225515_ai_();
this.func_213317_d(this.func_213322_ci().func_216372_d((double)f2, 1.0D, (double)f2)); this.func_213317_d(this.func_213322_ci().func_216372_d((double)f2, 1.0D, (double)f2));
@ -94,7 +94,7 @@
}) && this.field_190534_ay <= 0) { }) && this.field_190534_ay <= 0) {
this.func_241209_g_(-this.func_190531_bD()); this.func_241209_g_(-this.func_190531_bD());
} }
@@ -594,11 +607,10 @@ @@ -611,11 +624,10 @@
int j = MathHelper.func_76128_c(this.field_233557_ao_.field_72448_b - (double)0.2F); int j = MathHelper.func_76128_c(this.field_233557_ao_.field_72448_b - (double)0.2F);
int k = MathHelper.func_76128_c(this.field_233557_ao_.field_72449_c); int k = MathHelper.func_76128_c(this.field_233557_ao_.field_72449_c);
BlockPos blockpos = new BlockPos(i, j, k); BlockPos blockpos = new BlockPos(i, j, k);
@ -108,7 +108,7 @@
return blockpos1; return blockpos1;
} }
} }
@@ -784,6 +796,7 @@ @@ -801,6 +813,7 @@
public void func_174829_m() { public void func_174829_m() {
AxisAlignedBB axisalignedbb = this.func_174813_aQ(); AxisAlignedBB axisalignedbb = this.func_174813_aQ();
this.func_226288_n_((axisalignedbb.field_72340_a + axisalignedbb.field_72336_d) / 2.0D, axisalignedbb.field_72338_b, (axisalignedbb.field_72339_c + axisalignedbb.field_72334_f) / 2.0D); this.func_226288_n_((axisalignedbb.field_72340_a + axisalignedbb.field_72336_d) / 2.0D, axisalignedbb.field_72338_b, (axisalignedbb.field_72339_c + axisalignedbb.field_72334_f) / 2.0D);
@ -116,7 +116,7 @@
} }
protected SoundEvent func_184184_Z() { protected SoundEvent func_184184_Z() {
@@ -832,7 +845,7 @@ @@ -849,7 +862,7 @@
protected void func_180429_a(BlockPos p_180429_1_, BlockState p_180429_2_) { protected void func_180429_a(BlockPos p_180429_1_, BlockState p_180429_2_) {
if (!p_180429_2_.func_185904_a().func_76224_d()) { if (!p_180429_2_.func_185904_a().func_76224_d()) {
BlockState blockstate = this.field_70170_p.func_180495_p(p_180429_1_.func_177984_a()); BlockState blockstate = this.field_70170_p.func_180495_p(p_180429_1_.func_177984_a());
@ -125,7 +125,7 @@
this.func_184185_a(soundtype.func_185844_d(), soundtype.func_185843_a() * 0.15F, soundtype.func_185847_b()); this.func_184185_a(soundtype.func_185844_d(), soundtype.func_185843_a() * 0.15F, soundtype.func_185847_b());
} }
} }
@@ -1048,9 +1061,10 @@ @@ -1056,9 +1069,10 @@
int k = MathHelper.func_76128_c(this.func_226281_cx_()); int k = MathHelper.func_76128_c(this.func_226281_cx_());
BlockPos blockpos = new BlockPos(i, j, k); BlockPos blockpos = new BlockPos(i, j, k);
BlockState blockstate = this.field_70170_p.func_180495_p(blockpos); BlockState blockstate = this.field_70170_p.func_180495_p(blockpos);
@ -137,7 +137,7 @@
} }
} }
@@ -1356,6 +1370,7 @@ @@ -1377,6 +1391,7 @@
if (this.field_184238_ar) { if (this.field_184238_ar) {
p_189511_1_.func_74757_a("Glowing", this.field_184238_ar); p_189511_1_.func_74757_a("Glowing", this.field_184238_ar);
} }
@ -145,7 +145,7 @@
if (!this.field_184236_aF.isEmpty()) { if (!this.field_184236_aF.isEmpty()) {
ListNBT listnbt = new ListNBT(); ListNBT listnbt = new ListNBT();
@@ -1367,6 +1382,10 @@ @@ -1388,6 +1403,10 @@
p_189511_1_.func_218657_a("Tags", listnbt); p_189511_1_.func_218657_a("Tags", listnbt);
} }
@ -156,7 +156,7 @@
this.func_213281_b(p_189511_1_); this.func_213281_b(p_189511_1_);
if (this.func_184207_aI()) { if (this.func_184207_aI()) {
ListNBT listnbt1 = new ListNBT(); ListNBT listnbt1 = new ListNBT();
@@ -1437,6 +1456,9 @@ @@ -1458,6 +1477,9 @@
this.func_174810_b(p_70020_1_.func_74767_n("Silent")); this.func_174810_b(p_70020_1_.func_74767_n("Silent"));
this.func_189654_d(p_70020_1_.func_74767_n("NoGravity")); this.func_189654_d(p_70020_1_.func_74767_n("NoGravity"));
this.func_184195_f(p_70020_1_.func_74767_n("Glowing")); this.func_184195_f(p_70020_1_.func_74767_n("Glowing"));
@ -166,7 +166,7 @@
if (p_70020_1_.func_150297_b("Tags", 9)) { if (p_70020_1_.func_150297_b("Tags", 9)) {
this.field_184236_aF.clear(); this.field_184236_aF.clear();
ListNBT listnbt3 = p_70020_1_.func_150295_c("Tags", 8); ListNBT listnbt3 = p_70020_1_.func_150295_c("Tags", 8);
@@ -1525,6 +1547,8 @@ @@ -1546,6 +1568,8 @@
} else { } else {
ItemEntity itementity = new ItemEntity(this.field_70170_p, this.func_226277_ct_(), this.func_226278_cu_() + (double)p_70099_2_, this.func_226281_cx_(), p_70099_1_); ItemEntity itementity = new ItemEntity(this.field_70170_p, this.func_226277_ct_(), this.func_226278_cu_() + (double)p_70099_2_, this.func_226281_cx_(), p_70099_1_);
itementity.func_174869_p(); itementity.func_174869_p();
@ -175,7 +175,7 @@
this.field_70170_p.func_217376_c(itementity); this.field_70170_p.func_217376_c(itementity);
return itementity; return itementity;
} }
@@ -1558,6 +1582,7 @@ @@ -1582,6 +1606,7 @@
public void func_70098_U() { public void func_70098_U() {
this.func_213317_d(Vector3d.field_186680_a); this.func_213317_d(Vector3d.field_186680_a);
@ -183,7 +183,7 @@
this.func_70071_h_(); this.func_70071_h_();
if (this.func_184218_aH()) { if (this.func_184218_aH()) {
this.func_184187_bx().func_184232_k(this); this.func_184187_bx().func_184232_k(this);
@@ -1603,6 +1628,7 @@ @@ -1627,6 +1652,7 @@
} }
} }
@ -191,7 +191,7 @@
if (p_184205_2_ || this.func_184228_n(p_184205_1_) && p_184205_1_.func_184219_q(this)) { if (p_184205_2_ || this.func_184228_n(p_184205_1_) && p_184205_1_.func_184219_q(this)) {
if (this.func_184218_aH()) { if (this.func_184218_aH()) {
this.func_184210_p(); this.func_184210_p();
@@ -1635,6 +1661,7 @@ @@ -1659,6 +1685,7 @@
public void func_233575_bb_() { public void func_233575_bb_() {
if (this.field_184239_as != null) { if (this.field_184239_as != null) {
Entity entity = this.field_184239_as; Entity entity = this.field_184239_as;
@ -199,7 +199,7 @@
this.field_184239_as = null; this.field_184239_as = null;
entity.func_184225_p(this); entity.func_184225_p(this);
} }
@@ -1799,6 +1826,7 @@ @@ -1816,6 +1843,7 @@
return !this.func_184188_bt().isEmpty(); return !this.func_184188_bt().isEmpty();
} }
@ -207,7 +207,7 @@
public boolean func_205710_ba() { public boolean func_205710_ba() {
return true; return true;
} }
@@ -2015,7 +2043,7 @@ @@ -2032,7 +2060,7 @@
} }
protected ITextComponent func_225513_by_() { protected ITextComponent func_225513_by_() {
@ -216,7 +216,7 @@
} }
public boolean func_70028_i(Entity p_70028_1_) { public boolean func_70028_i(Entity p_70028_1_) {
@@ -2072,10 +2100,15 @@ @@ -2087,6 +2115,10 @@
@Nullable @Nullable
public Entity func_241206_a_(ServerWorld p_241206_1_) { public Entity func_241206_a_(ServerWorld p_241206_1_) {
@ -227,58 +227,37 @@
if (this.field_70170_p instanceof ServerWorld && !this.field_70128_L) { if (this.field_70170_p instanceof ServerWorld && !this.field_70128_L) {
this.field_70170_p.func_217381_Z().func_76320_a("changeDimension"); this.field_70170_p.func_217381_Z().func_76320_a("changeDimension");
this.func_213319_R(); this.func_213319_R();
this.field_70170_p.func_217381_Z().func_76320_a("reposition"); @@ -2095,6 +2127,7 @@
+ Entity transportedEntity = teleporter.placeEntity(this, (ServerWorld) this.field_70170_p, p_241206_1_, this.field_70177_z, spawnPortal -> { //Forge: Start vanilla logic if (portalinfo == null) {
Vector3d vector3d = this.func_213322_ci(); return null;
float f = 0.0F; } else {
BlockPos blockpos; + Entity transportedEntity = teleporter.placeEntity(this, (ServerWorld) this.field_70170_p, p_241206_1_, this.field_70177_z, spawnPortal -> { //Forge: Start vanilla logic
@@ -2105,6 +2138,7 @@ this.field_70170_p.func_217381_Z().func_219895_b("reloading");
d1 = MathHelper.func_151237_a(d1, d4, d6); Entity entity = this.func_200600_R().func_200721_a(p_241206_1_);
Vector3d vector3d1 = this.func_181014_aG(); if (entity != null) {
blockpos = new BlockPos(d0, this.func_226278_cu_(), d1); @@ -2102,17 +2135,19 @@
+ if (spawnPortal) { entity.func_70012_b(portalinfo.field_222505_a.field_72450_a, portalinfo.field_222505_a.field_72448_b, portalinfo.field_222505_a.field_72449_c, portalinfo.field_242960_c, entity.field_70125_A);
BlockPattern.PortalInfo blockpattern$portalinfo = p_241206_1_.func_85176_s().func_222272_a(blockpos, vector3d, this.func_181012_aH(), vector3d1.field_72450_a, vector3d1.field_72448_b, this instanceof PlayerEntity); entity.func_213317_d(portalinfo.field_222506_b);
if (blockpattern$portalinfo == null) { p_241206_1_.func_217460_e(entity);
return null; - if (p_241206_1_.func_234923_W_() == World.field_234920_i_) {
@@ -2113,6 +2147,7 @@ + if (spawnPortal && p_241206_1_.func_234923_W_() == World.field_234920_i_) {
blockpos = new BlockPos(blockpattern$portalinfo.field_222505_a); ServerWorld.func_241121_a_(p_241206_1_);
vector3d = blockpattern$portalinfo.field_222506_b; }
f = (float)blockpattern$portalinfo.field_222507_c;
+ }
}
this.field_70170_p.func_217381_Z().func_219895_b("reloading");
@@ -2126,13 +2161,15 @@
ServerWorld.func_241121_a_(p_241206_1_);
} }
} + return entity;
+ return entity; + }); //Forge: End vanilla logic
+ });//Forge: End vanilla logic
this.func_241204_bJ_(); this.func_241204_bJ_();
this.field_70170_p.func_217381_Z().func_76319_b(); this.field_70170_p.func_217381_Z().func_76319_b();
((ServerWorld)this.field_70170_p).func_82742_i(); ((ServerWorld)this.field_70170_p).func_82742_i();
p_241206_1_.func_82742_i(); p_241206_1_.func_82742_i();
this.field_70170_p.func_217381_Z().func_76319_b(); this.field_70170_p.func_217381_Z().func_76319_b();
- return entity; - return entity;
+ return transportedEntity; + return transportedEntity;
}
} else { } else {
return null; return null;
} @@ -2322,7 +2357,7 @@
@@ -2159,10 +2196,12 @@
}
public Vector3d func_181014_aG() {
+ if (this.field_181017_ao == null) return Vector3d.field_186680_a;
return this.field_181017_ao;
}
public Direction func_181012_aH() {
+ if (this.field_181018_ap == null) return Direction.NORTH;
return this.field_181018_ap;
}
@@ -2295,7 +2334,7 @@
Pose pose = this.func_213283_Z(); Pose pose = this.func_213283_Z();
EntitySize entitysize1 = this.func_213305_a(pose); EntitySize entitysize1 = this.func_213305_a(pose);
this.field_213325_aI = entitysize1; this.field_213325_aI = entitysize1;
@ -287,7 +266,7 @@
if (entitysize1.field_220315_a < entitysize.field_220315_a) { if (entitysize1.field_220315_a < entitysize.field_220315_a) {
double d0 = (double)entitysize1.field_220315_a / 2.0D; double d0 = (double)entitysize1.field_220315_a / 2.0D;
this.func_174826_a(new AxisAlignedBB(this.func_226277_ct_() - d0, this.func_226278_cu_(), this.func_226281_cx_() - d0, this.func_226277_ct_() + d0, this.func_226278_cu_() + (double)entitysize1.field_220316_b, this.func_226281_cx_() + d0)); this.func_174826_a(new AxisAlignedBB(this.func_226277_ct_() - d0, this.func_226278_cu_(), this.func_226281_cx_() - d0, this.func_226277_ct_() + d0, this.func_226278_cu_() + (double)entitysize1.field_220316_b, this.func_226281_cx_() + d0));
@@ -2769,6 +2808,7 @@ @@ -2796,6 +2831,7 @@
this.field_233555_aA_ = true; this.field_233555_aA_ = true;
} }
@ -295,7 +274,7 @@
} }
@@ -2779,4 +2819,69 @@ @@ -2811,4 +2847,69 @@
public interface IMoveCallback { public interface IMoveCallback {
void accept(Entity p_accept_1_, double p_accept_2_, double p_accept_4_, double p_accept_6_); void accept(Entity p_accept_1_, double p_accept_2_, double p_accept_4_, double p_accept_6_);
} }

View File

@ -1,7 +1,7 @@
--- a/net/minecraft/entity/EntitySpawnPlacementRegistry.java --- a/net/minecraft/entity/EntitySpawnPlacementRegistry.java
+++ b/net/minecraft/entity/EntitySpawnPlacementRegistry.java +++ b/net/minecraft/entity/EntitySpawnPlacementRegistry.java
@@ -147,10 +147,26 @@ @@ -147,10 +147,26 @@
boolean test(EntityType<T> p_test_1_, IWorld p_test_2_, SpawnReason p_test_3_, BlockPos p_test_4_, Random p_test_5_); boolean test(EntityType<T> p_test_1_, IServerWorld p_test_2_, SpawnReason p_test_3_, BlockPos p_test_4_, Random p_test_5_);
} }
- public static enum PlacementType { - public static enum PlacementType {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/EntityType.java --- a/net/minecraft/entity/EntityType.java
+++ b/net/minecraft/entity/EntityType.java +++ b/net/minecraft/entity/EntityType.java
@@ -141,7 +141,7 @@ @@ -143,7 +143,7 @@
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
@ -9,7 +9,7 @@
private static final Logger field_200731_aJ = LogManager.getLogger(); private static final Logger field_200731_aJ = LogManager.getLogger();
public static final EntityType<AreaEffectCloudEntity> field_200788_b = func_200712_a("area_effect_cloud", EntityType.Builder.<AreaEffectCloudEntity>func_220322_a(AreaEffectCloudEntity::new, EntityClassification.MISC).func_220320_c().func_220321_a(6.0F, 0.5F).func_233606_a_(10).func_233608_b_(Integer.MAX_VALUE)); public static final EntityType<AreaEffectCloudEntity> field_200788_b = func_200712_a("area_effect_cloud", EntityType.Builder.<AreaEffectCloudEntity>func_220322_a(AreaEffectCloudEntity::new, EntityClassification.MISC).func_220320_c().func_220321_a(6.0F, 0.5F).func_233606_a_(10).func_233608_b_(Integer.MAX_VALUE));
public static final EntityType<ArmorStandEntity> field_200789_c = func_200712_a("armor_stand", EntityType.Builder.<ArmorStandEntity>func_220322_a(ArmorStandEntity::new, EntityClassification.MISC).func_220321_a(0.5F, 1.975F).func_233606_a_(10)); public static final EntityType<ArmorStandEntity> field_200789_c = func_200712_a("armor_stand", EntityType.Builder.<ArmorStandEntity>func_220322_a(ArmorStandEntity::new, EntityClassification.MISC).func_220321_a(0.5F, 1.975F).func_233606_a_(10));
@@ -267,6 +267,12 @@ @@ -270,6 +270,12 @@
private ResourceLocation field_220358_bg; private ResourceLocation field_220358_bg;
private final EntitySize field_220359_bi; private final EntitySize field_220359_bi;
@ -22,7 +22,7 @@
private static <T extends Entity> EntityType<T> func_200712_a(String p_200712_0_, EntityType.Builder<T> p_200712_1_) { private static <T extends Entity> EntityType<T> func_200712_a(String p_200712_0_, EntityType.Builder<T> p_200712_1_) {
return Registry.func_218325_a(Registry.field_212629_r, p_200712_0_, p_200712_1_.func_206830_a(p_200712_0_)); return Registry.func_218325_a(Registry.field_212629_r, p_200712_0_, p_200712_1_.func_206830_a(p_200712_0_));
} }
@@ -280,6 +286,9 @@ @@ -283,6 +289,9 @@
} }
public EntityType(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_) { public EntityType(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_) {
@ -32,7 +32,7 @@
this.field_200732_aK = p_i231489_1_; this.field_200732_aK = p_i231489_1_;
this.field_220355_ba = p_i231489_2_; this.field_220355_ba = p_i231489_2_;
this.field_225438_be = p_i231489_6_; this.field_225438_be = p_i231489_6_;
@@ -290,6 +299,10 @@ @@ -293,6 +302,10 @@
this.field_220359_bi = p_i231489_8_; this.field_220359_bi = p_i231489_8_;
this.field_233594_bl_ = p_i231489_9_; this.field_233594_bl_ = p_i231489_9_;
this.field_233595_bm_ = p_i231489_10_; this.field_233595_bm_ = p_i231489_10_;
@ -43,15 +43,15 @@
} }
@Nullable @Nullable
@@ -300,6 +313,7 @@ @@ -304,6 +317,7 @@
@Nullable public T func_220342_a(ServerWorld p_220342_1_, @Nullable CompoundNBT p_220342_2_, @Nullable ITextComponent p_220342_3_, @Nullable PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) {
public T func_220342_a(World p_220342_1_, @Nullable CompoundNBT p_220342_2_, @Nullable ITextComponent p_220342_3_, @Nullable PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) {
T t = this.func_220349_b(p_220342_1_, p_220342_2_, p_220342_3_, p_220342_4_, p_220342_5_, p_220342_6_, p_220342_7_, p_220342_8_); T t = this.func_220349_b(p_220342_1_, p_220342_2_, p_220342_3_, p_220342_4_, p_220342_5_, p_220342_6_, p_220342_7_, p_220342_8_);
+ if (t instanceof net.minecraft.entity.MobEntity && net.minecraftforge.event.ForgeEventFactory.doSpecialSpawn((net.minecraft.entity.MobEntity) t, p_220342_1_, p_220342_5_.func_177958_n(), p_220342_5_.func_177956_o(), p_220342_5_.func_177952_p(), null, p_220342_6_)) return null; if (t != null) {
p_220342_1_.func_217376_c(t); + if (t instanceof net.minecraft.entity.MobEntity && net.minecraftforge.event.ForgeEventFactory.doSpecialSpawn((net.minecraft.entity.MobEntity) t, p_220342_1_, p_220342_5_.func_177958_n(), p_220342_5_.func_177956_o(), p_220342_5_.func_177952_p(), null, p_220342_6_)) return null;
return t; p_220342_1_.func_242417_l(t);
} }
@@ -498,14 +512,23 @@
@@ -504,14 +518,23 @@
} }
public int func_233602_m_() { public int func_233602_m_() {
@ -75,7 +75,7 @@
return this != field_200729_aH && this != field_200770_J && this != field_200760_az && this != field_200791_e && this != field_200766_F && this != field_200768_H && this != field_200782_V && this != field_200801_o && this != field_200805_s; return this != field_200729_aH && this != field_200770_J && this != field_200760_az && this != field_200791_e && this != field_200766_F && this != field_200768_H && this != field_200782_V && this != field_200801_o && this != field_200805_s;
} }
@@ -513,6 +536,19 @@ @@ -519,6 +542,19 @@
return p_220341_1_.func_230235_a_(this); return p_220341_1_.func_230235_a_(this);
} }
@ -95,7 +95,7 @@
public static class Builder<T extends Entity> { public static class Builder<T extends Entity> {
private final EntityType.IFactory<T> field_200709_a; private final EntityType.IFactory<T> field_200709_a;
private final EntityClassification field_220324_b; private final EntityClassification field_220324_b;
@@ -525,6 +561,11 @@ @@ -531,6 +567,11 @@
private int field_233605_i_ = 3; private int field_233605_i_ = 3;
private EntitySize field_220326_f = EntitySize.func_220314_b(0.6F, 1.8F); private EntitySize field_220326_f = EntitySize.func_220314_b(0.6F, 1.8F);
@ -107,7 +107,7 @@
private Builder(EntityType.IFactory<T> p_i50479_1_, EntityClassification p_i50479_2_) { private Builder(EntityType.IFactory<T> p_i50479_1_, EntityClassification p_i50479_2_) {
this.field_200709_a = p_i50479_1_; this.field_200709_a = p_i50479_1_;
this.field_220324_b = p_i50479_2_; this.field_220324_b = p_i50479_2_;
@@ -581,12 +622,36 @@ @@ -587,12 +628,36 @@
return this; return this;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/LivingEntity.java --- a/net/minecraft/entity/LivingEntity.java
+++ b/net/minecraft/entity/LivingEntity.java +++ b/net/minecraft/entity/LivingEntity.java
@@ -116,7 +116,9 @@ @@ -117,7 +117,9 @@
public abstract class LivingEntity extends Entity { public abstract class LivingEntity extends Entity {
private static final UUID field_110156_b = UUID.fromString("662A6B8D-DA3E-4C1C-8813-96EA6097278D"); private static final UUID field_110156_b = UUID.fromString("662A6B8D-DA3E-4C1C-8813-96EA6097278D");
private static final UUID field_233625_c_ = UUID.fromString("87f46a96-686f-4796-b035-22e16ee9e038"); private static final UUID field_233625_c_ = UUID.fromString("87f46a96-686f-4796-b035-22e16ee9e038");
@ -10,7 +10,7 @@
protected static final DataParameter<Byte> field_184621_as = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187191_a); protected static final DataParameter<Byte> field_184621_as = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187191_a);
private static final DataParameter<Float> field_184632_c = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187193_c); private static final DataParameter<Float> field_184632_c = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187193_c);
private static final DataParameter<Integer> field_184633_f = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187192_b); private static final DataParameter<Integer> field_184633_f = EntityDataManager.func_187226_a(LivingEntity.class, DataSerializers.field_187192_b);
@@ -244,7 +246,7 @@ @@ -245,7 +247,7 @@
} }
public static AttributeModifierMap.MutableAttribute func_233639_cI_() { public static AttributeModifierMap.MutableAttribute func_233639_cI_() {
@ -19,7 +19,7 @@
} }
protected void func_184231_a(double p_184231_1_, boolean p_184231_3_, BlockState p_184231_4_, BlockPos p_184231_5_) { protected void func_184231_a(double p_184231_1_, boolean p_184231_3_, BlockState p_184231_4_, BlockPos p_184231_5_) {
@@ -259,9 +261,10 @@ @@ -260,9 +262,10 @@
if (!this.field_70170_p.field_72995_K && this.field_70143_R > 3.0F && p_184231_3_) { if (!this.field_70170_p.field_72995_K && this.field_70143_R > 3.0F && p_184231_3_) {
float f = (float)MathHelper.func_76123_f(this.field_70143_R - 3.0F); float f = (float)MathHelper.func_76123_f(this.field_70143_R - 3.0F);
@ -31,7 +31,7 @@
((ServerWorld)this.field_70170_p).func_195598_a(new BlockParticleData(ParticleTypes.field_197611_d, p_184231_4_), this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), i, 0.0D, 0.0D, 0.0D, (double)0.15F); ((ServerWorld)this.field_70170_p).func_195598_a(new BlockParticleData(ParticleTypes.field_197611_d, p_184231_4_), this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), i, 0.0D, 0.0D, 0.0D, (double)0.15F);
} }
} }
@@ -329,7 +332,7 @@ @@ -330,7 +333,7 @@
} }
} }
@ -40,7 +40,7 @@
this.func_184210_p(); this.func_184210_p();
} }
} else if (this.func_70086_ai() < this.func_205010_bg()) { } else if (this.func_70086_ai() < this.func_205010_bg()) {
@@ -474,7 +477,7 @@ @@ -475,7 +478,7 @@
protected void func_70609_aI() { protected void func_70609_aI() {
++this.field_70725_aQ; ++this.field_70725_aQ;
if (this.field_70725_aQ == 20) { if (this.field_70725_aQ == 20) {
@ -49,7 +49,7 @@
for(int i = 0; i < 20; ++i) { for(int i = 0; i < 20; ++i) {
double d0 = this.field_70146_Z.nextGaussian() * 0.02D; double d0 = this.field_70146_Z.nextGaussian() * 0.02D;
@@ -667,7 +670,7 @@ @@ -668,7 +671,7 @@
if (!effectinstance.func_76455_a(this, () -> { if (!effectinstance.func_76455_a(this, () -> {
this.func_70695_b(effectinstance, true); this.func_70695_b(effectinstance, true);
})) { })) {
@ -58,7 +58,7 @@
iterator.remove(); iterator.remove();
this.func_70688_c(effectinstance); this.func_70688_c(effectinstance);
} }
@@ -716,8 +719,10 @@ @@ -717,8 +720,10 @@
this.func_82142_c(false); this.func_82142_c(false);
} else { } else {
Collection<EffectInstance> collection = this.field_70713_bf.values(); Collection<EffectInstance> collection = this.field_70713_bf.values();
@ -71,7 +71,7 @@
this.func_82142_c(this.func_70644_a(Effects.field_76441_p)); this.func_82142_c(this.func_70644_a(Effects.field_76441_p));
} }
@@ -781,7 +786,9 @@ @@ -782,7 +787,9 @@
boolean flag; boolean flag;
for(flag = false; iterator.hasNext(); flag = true) { for(flag = false; iterator.hasNext(); flag = true) {
@ -82,7 +82,7 @@
iterator.remove(); iterator.remove();
} }
@@ -811,6 +818,7 @@ @@ -812,6 +819,7 @@
return false; return false;
} else { } else {
EffectInstance effectinstance = this.field_70713_bf.get(p_195064_1_.func_188419_a()); EffectInstance effectinstance = this.field_70713_bf.get(p_195064_1_.func_188419_a());
@ -90,7 +90,7 @@
if (effectinstance == null) { if (effectinstance == null) {
this.field_70713_bf.put(p_195064_1_.func_188419_a(), p_195064_1_); this.field_70713_bf.put(p_195064_1_.func_188419_a(), p_195064_1_);
this.func_70670_a(p_195064_1_); this.func_70670_a(p_195064_1_);
@@ -825,6 +833,9 @@ @@ -826,6 +834,9 @@
} }
public boolean func_70687_e(EffectInstance p_70687_1_) { public boolean func_70687_e(EffectInstance p_70687_1_) {
@ -100,7 +100,7 @@
if (this.func_70668_bt() == CreatureAttribute.field_223223_b_) { if (this.func_70668_bt() == CreatureAttribute.field_223223_b_) {
Effect effect = p_70687_1_.func_188419_a(); Effect effect = p_70687_1_.func_188419_a();
if (effect == Effects.field_76428_l || effect == Effects.field_76436_u) { if (effect == Effects.field_76428_l || effect == Effects.field_76436_u) {
@@ -858,6 +869,7 @@ @@ -859,6 +870,7 @@
} }
public boolean func_195063_d(Effect p_195063_1_) { public boolean func_195063_d(Effect p_195063_1_) {
@ -108,7 +108,7 @@
EffectInstance effectinstance = this.func_184596_c(p_195063_1_); EffectInstance effectinstance = this.func_184596_c(p_195063_1_);
if (effectinstance != null) { if (effectinstance != null) {
this.func_70688_c(effectinstance); this.func_70688_c(effectinstance);
@@ -894,6 +906,8 @@ @@ -895,6 +907,8 @@
} }
public void func_70691_i(float p_70691_1_) { public void func_70691_i(float p_70691_1_) {
@ -117,7 +117,7 @@
float f = this.func_110143_aJ(); float f = this.func_110143_aJ();
if (f > 0.0F) { if (f > 0.0F) {
this.func_70606_j(f + p_70691_1_); this.func_70606_j(f + p_70691_1_);
@@ -914,6 +928,7 @@ @@ -915,6 +929,7 @@
} }
public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) { public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) {
@ -125,7 +125,7 @@
if (this.func_180431_b(p_70097_1_)) { if (this.func_180431_b(p_70097_1_)) {
return false; return false;
} else if (this.field_70170_p.field_72995_K) { } else if (this.field_70170_p.field_72995_K) {
@@ -980,8 +995,8 @@ @@ -981,8 +996,8 @@
if (entity1 instanceof PlayerEntity) { if (entity1 instanceof PlayerEntity) {
this.field_70718_bc = 100; this.field_70718_bc = 100;
this.field_70717_bb = (PlayerEntity)entity1; this.field_70717_bb = (PlayerEntity)entity1;
@ -136,7 +136,7 @@
if (wolfentity.func_70909_n()) { if (wolfentity.func_70909_n()) {
this.field_70718_bc = 100; this.field_70718_bc = 100;
LivingEntity livingentity = wolfentity.func_70902_q(); LivingEntity livingentity = wolfentity.func_70902_q();
@@ -1163,6 +1178,7 @@ @@ -1165,6 +1180,7 @@
} }
public void func_70645_a(DamageSource p_70645_1_) { public void func_70645_a(DamageSource p_70645_1_) {
@ -144,7 +144,7 @@
if (!this.field_70128_L && !this.field_70729_aU) { if (!this.field_70128_L && !this.field_70729_aU) {
Entity entity = p_70645_1_.func_76346_g(); Entity entity = p_70645_1_.func_76346_g();
LivingEntity livingentity = this.func_94060_bK(); LivingEntity livingentity = this.func_94060_bK();
@@ -1194,10 +1210,10 @@ @@ -1196,10 +1212,10 @@
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {
boolean flag = false; boolean flag = false;
if (p_226298_1_ instanceof WitherEntity) { if (p_226298_1_ instanceof WitherEntity) {
@ -157,7 +157,7 @@
this.field_70170_p.func_180501_a(blockpos, blockstate, 3); this.field_70170_p.func_180501_a(blockpos, blockstate, 3);
flag = true; flag = true;
} }
@@ -1214,13 +1230,10 @@ @@ -1216,13 +1232,10 @@
protected void func_213345_d(DamageSource p_213345_1_) { protected void func_213345_d(DamageSource p_213345_1_) {
Entity entity = p_213345_1_.func_76346_g(); Entity entity = p_213345_1_.func_76346_g();
@ -174,7 +174,7 @@
boolean flag = this.field_70718_bc > 0; boolean flag = this.field_70718_bc > 0;
if (this.func_230282_cS_() && this.field_70170_p.func_82736_K().func_223586_b(GameRules.field_223602_e)) { if (this.func_230282_cS_() && this.field_70170_p.func_82736_K().func_223586_b(GameRules.field_223602_e)) {
this.func_213354_a(p_213345_1_, flag); this.func_213354_a(p_213345_1_, flag);
@@ -1229,6 +1242,10 @@ @@ -1231,6 +1244,10 @@
this.func_213337_cE(); this.func_213337_cE();
this.func_226294_cV_(); this.func_226294_cV_();
@ -185,7 +185,7 @@
} }
protected void func_213337_cE() { protected void func_213337_cE() {
@@ -1238,6 +1255,7 @@ @@ -1240,6 +1257,7 @@
if (!this.field_70170_p.field_72995_K && (this.func_70684_aJ() || this.field_70718_bc > 0 && this.func_146066_aG() && this.field_70170_p.func_82736_K().func_223586_b(GameRules.field_223602_e))) { if (!this.field_70170_p.field_72995_K && (this.func_70684_aJ() || this.field_70718_bc > 0 && this.func_146066_aG() && this.field_70170_p.func_82736_K().func_223586_b(GameRules.field_223602_e))) {
int i = this.func_70693_a(this.field_70717_bb); int i = this.func_70693_a(this.field_70717_bb);
@ -193,7 +193,7 @@
while(i > 0) { while(i > 0) {
int j = ExperienceOrbEntity.func_70527_a(i); int j = ExperienceOrbEntity.func_70527_a(i);
i -= j; i -= j;
@@ -1258,7 +1276,8 @@ @@ -1260,7 +1278,8 @@
ResourceLocation resourcelocation = this.func_213346_cF(); ResourceLocation resourcelocation = this.func_213346_cF();
LootTable loottable = this.field_70170_p.func_73046_m().func_200249_aQ().func_186521_a(resourcelocation); LootTable loottable = this.field_70170_p.func_73046_m().func_200249_aQ().func_186521_a(resourcelocation);
LootContext.Builder lootcontext$builder = this.func_213363_a(p_213354_2_, p_213354_1_); LootContext.Builder lootcontext$builder = this.func_213363_a(p_213354_2_, p_213354_1_);
@ -203,12 +203,11 @@
} }
protected LootContext.Builder func_213363_a(boolean p_213363_1_, DamageSource p_213363_2_) { protected LootContext.Builder func_213363_a(boolean p_213363_1_, DamageSource p_213363_2_) {
@@ -1271,6 +1290,12 @@ @@ -1273,6 +1292,11 @@
} }
public void func_233627_a_(float p_233627_1_, double p_233627_2_, double p_233627_4_) { public void func_233627_a_(float p_233627_1_, double p_233627_2_, double p_233627_4_) {
+ //TODO, Vanilla removed the attacker entity from this method, 1.15-mcp: knockBack + net.minecraftforge.event.entity.living.LivingKnockBackEvent event = net.minecraftforge.common.ForgeHooks.onLivingKnockBack(this, p_233627_1_, p_233627_2_, p_233627_4_);
+ net.minecraftforge.event.entity.living.LivingKnockBackEvent event = net.minecraftforge.common.ForgeHooks.onLivingKnockBack(this, null, p_233627_1_, p_233627_2_, p_233627_4_);
+ if(event.isCanceled()) return; + if(event.isCanceled()) return;
+ p_233627_1_ = event.getStrength(); + p_233627_1_ = event.getStrength();
+ p_233627_2_ = event.getRatioX(); + p_233627_2_ = event.getRatioX();
@ -216,7 +215,7 @@
p_233627_1_ = (float)((double)p_233627_1_ * (1.0D - this.func_233637_b_(Attributes.field_233820_c_))); p_233627_1_ = (float)((double)p_233627_1_ * (1.0D - this.func_233637_b_(Attributes.field_233820_c_)));
if (!(p_233627_1_ <= 0.0F)) { if (!(p_233627_1_ <= 0.0F)) {
this.field_70160_al = true; this.field_70160_al = true;
@@ -1320,16 +1345,7 @@ @@ -1322,16 +1346,7 @@
} else { } else {
BlockPos blockpos = this.func_233580_cy_(); BlockPos blockpos = this.func_233580_cy_();
BlockState blockstate = this.func_213339_cH(); BlockState blockstate = this.func_213339_cH();
@ -234,7 +233,7 @@
} }
} }
@@ -1353,6 +1369,11 @@ @@ -1355,6 +1370,11 @@
} }
public boolean func_225503_b_(float p_225503_1_, float p_225503_2_) { public boolean func_225503_b_(float p_225503_1_, float p_225503_2_) {
@ -246,7 +245,7 @@
boolean flag = super.func_225503_b_(p_225503_1_, p_225503_2_); boolean flag = super.func_225503_b_(p_225503_1_, p_225503_2_);
int i = this.func_225508_e_(p_225503_1_, p_225503_2_); int i = this.func_225508_e_(p_225503_1_, p_225503_2_);
if (i > 0) { if (i > 0) {
@@ -1376,9 +1397,10 @@ @@ -1378,9 +1398,10 @@
int i = MathHelper.func_76128_c(this.func_226277_ct_()); int i = MathHelper.func_76128_c(this.func_226277_ct_());
int j = MathHelper.func_76128_c(this.func_226278_cu_() - (double)0.2F); int j = MathHelper.func_76128_c(this.func_226278_cu_() - (double)0.2F);
int k = MathHelper.func_76128_c(this.func_226281_cx_()); int k = MathHelper.func_76128_c(this.func_226281_cx_());
@ -260,7 +259,7 @@
this.func_184185_a(soundtype.func_185842_g(), soundtype.func_185843_a() * 0.5F, soundtype.func_185847_b() * 0.75F); this.func_184185_a(soundtype.func_185842_g(), soundtype.func_185843_a() * 0.5F, soundtype.func_185847_b() * 0.75F);
} }
@@ -1446,6 +1468,8 @@ @@ -1448,6 +1469,8 @@
protected void func_70665_d(DamageSource p_70665_1_, float p_70665_2_) { protected void func_70665_d(DamageSource p_70665_1_, float p_70665_2_) {
if (!this.func_180431_b(p_70665_1_)) { if (!this.func_180431_b(p_70665_1_)) {
@ -269,7 +268,7 @@
p_70665_2_ = this.func_70655_b(p_70665_1_, p_70665_2_); p_70665_2_ = this.func_70655_b(p_70665_1_, p_70665_2_);
p_70665_2_ = this.func_70672_c(p_70665_1_, p_70665_2_); p_70665_2_ = this.func_70672_c(p_70665_1_, p_70665_2_);
float f2 = Math.max(p_70665_2_ - this.func_110139_bj(), 0.0F); float f2 = Math.max(p_70665_2_ - this.func_110139_bj(), 0.0F);
@@ -1455,10 +1479,11 @@ @@ -1457,10 +1480,11 @@
((ServerPlayerEntity)p_70665_1_.func_76346_g()).func_195067_a(Stats.field_212735_F, Math.round(f * 10.0F)); ((ServerPlayerEntity)p_70665_1_.func_76346_g()).func_195067_a(Stats.field_212735_F, Math.round(f * 10.0F));
} }
@ -282,7 +281,7 @@
this.func_110149_m(this.func_110139_bj() - f2); this.func_110149_m(this.func_110139_bj() - f2);
} }
} }
@@ -1512,6 +1537,8 @@ @@ -1514,6 +1538,8 @@
} }
public void func_226292_a_(Hand p_226292_1_, boolean p_226292_2_) { public void func_226292_a_(Hand p_226292_1_, boolean p_226292_2_) {
@ -291,7 +290,7 @@
if (!this.field_82175_bq || this.field_110158_av >= this.func_82166_i() / 2 || this.field_110158_av < 0) { if (!this.field_82175_bq || this.field_110158_av >= this.func_82166_i() / 2 || this.field_110158_av < 0) {
this.field_110158_av = -1; this.field_110158_av = -1;
this.field_82175_bq = true; this.field_82175_bq = true;
@@ -1846,15 +1873,16 @@ @@ -1848,15 +1874,16 @@
} }
this.field_70160_al = true; this.field_70160_al = true;
@ -310,11 +309,11 @@
} }
protected float func_189749_co() { protected float func_189749_co() {
@@ -1868,11 +1896,15 @@ @@ -1870,11 +1897,15 @@
public void func_213352_e(Vector3d p_213352_1_) { public void func_213352_e(Vector3d p_213352_1_) {
if (this.func_70613_aW() || this.func_184186_bw()) { if (this.func_70613_aW() || this.func_184186_bw()) {
double d0 = 0.08D; double d0 = 0.08D;
+ ModifiableAttributeInstance gravity = this.func_110148_a(net.minecraftforge.common.ForgeMod.ENTITY_GRAVITY.get()); + ModifiableAttributeInstance gravity = this.func_110148_a(net.minecraftforge.common.ForgeMod.ENTITY_GRAVITY.get());
boolean flag = this.func_213322_ci().field_72448_b <= 0.0D; boolean flag = this.func_213322_ci().field_72448_b <= 0.0D;
if (flag && this.func_70644_a(Effects.field_204839_B)) { if (flag && this.func_70644_a(Effects.field_204839_B)) {
- d0 = 0.01D; - d0 = 0.01D;
@ -327,7 +326,7 @@
FluidState fluidstate = this.field_70170_p.func_204610_c(this.func_233580_cy_()); FluidState fluidstate = this.field_70170_p.func_204610_c(this.func_233580_cy_());
if (this.func_70090_H() && this.func_241208_cS_() && !this.func_230285_a_(fluidstate.func_206886_c())) { if (this.func_70090_H() && this.func_241208_cS_() && !this.func_230285_a_(fluidstate.func_206886_c())) {
@@ -1897,6 +1929,7 @@ @@ -1899,6 +1930,7 @@
f5 = 0.96F; f5 = 0.96F;
} }
@ -335,7 +334,7 @@
this.func_213309_a(f6, p_213352_1_); this.func_213309_a(f6, p_213352_1_);
this.func_213315_a(MoverType.SELF, this.func_213322_ci()); this.func_213315_a(MoverType.SELF, this.func_213322_ci());
Vector3d vector3d6 = this.func_213322_ci(); Vector3d vector3d6 = this.func_213322_ci();
@@ -1975,7 +2008,7 @@ @@ -1977,7 +2009,7 @@
} }
} else { } else {
BlockPos blockpos = this.func_226270_aj_(); BlockPos blockpos = this.func_226270_aj_();
@ -344,7 +343,7 @@
float f4 = this.field_70122_E ? f3 * 0.91F : 0.91F; float f4 = this.field_70122_E ? f3 * 0.91F : 0.91F;
Vector3d vector3d5 = this.func_233633_a_(p_213352_1_, f3); Vector3d vector3d5 = this.func_233633_a_(p_213352_1_, f3);
double d2 = vector3d5.field_72448_b; double d2 = vector3d5.field_72448_b;
@@ -2075,6 +2108,7 @@ @@ -2077,6 +2109,7 @@
} }
public void func_70071_h_() { public void func_70071_h_() {
@ -352,7 +351,7 @@
super.func_70071_h_(); super.func_70071_h_();
this.func_184608_ct(); this.func_184608_ct();
this.func_205014_p(); this.func_205014_p();
@@ -2230,6 +2264,7 @@ @@ -2232,6 +2265,7 @@
ItemStack itemstack1 = this.func_184582_a(equipmentslottype); ItemStack itemstack1 = this.func_184582_a(equipmentslottype);
if (!ItemStack.func_77989_b(itemstack1, itemstack)) { if (!ItemStack.func_77989_b(itemstack1, itemstack)) {
@ -360,7 +359,7 @@
if (map == null) { if (map == null) {
map = Maps.newEnumMap(EquipmentSlotType.class); map = Maps.newEnumMap(EquipmentSlotType.class);
} }
@@ -2434,6 +2469,8 @@ @@ -2436,6 +2470,8 @@
boolean flag = this.func_70083_f(7); boolean flag = this.func_70083_f(7);
if (flag && !this.field_70122_E && !this.func_184218_aH() && !this.func_70644_a(Effects.field_188424_y)) { if (flag && !this.field_70122_E && !this.func_184218_aH() && !this.func_70644_a(Effects.field_188424_y)) {
ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST); ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST);
@ -369,7 +368,7 @@
if (itemstack.func_77973_b() == Items.field_185160_cR && ElytraItem.func_185069_d(itemstack)) { if (itemstack.func_77973_b() == Items.field_185160_cR && ElytraItem.func_185069_d(itemstack)) {
flag = true; flag = true;
if (!this.field_70170_p.field_72995_K && (this.field_184629_bo + 1) % 20 == 0) { if (!this.field_70170_p.field_72995_K && (this.field_184629_bo + 1) % 20 == 0) {
@@ -2658,8 +2695,16 @@ @@ -2668,8 +2704,16 @@
private void func_184608_ct() { private void func_184608_ct() {
if (this.func_184587_cr()) { if (this.func_184587_cr()) {
@ -388,7 +387,7 @@
this.field_184627_bm.func_222121_b(this.field_70170_p, this, this.func_184605_cv()); this.field_184627_bm.func_222121_b(this.field_70170_p, this, this.func_184605_cv());
if (this.func_226299_p_()) { if (this.func_226299_p_()) {
this.func_226293_b_(this.field_184627_bm, 5); this.func_226293_b_(this.field_184627_bm, 5);
@@ -2707,8 +2752,10 @@ @@ -2717,8 +2761,10 @@
public void func_184598_c(Hand p_184598_1_) { public void func_184598_c(Hand p_184598_1_) {
ItemStack itemstack = this.func_184586_b(p_184598_1_); ItemStack itemstack = this.func_184586_b(p_184598_1_);
if (!itemstack.func_190926_b() && !this.func_184587_cr()) { if (!itemstack.func_190926_b() && !this.func_184587_cr()) {
@ -400,7 +399,7 @@
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {
this.func_204802_c(1, true); this.func_204802_c(1, true);
this.func_204802_c(2, p_184598_1_ == Hand.OFF_HAND); this.func_204802_c(2, p_184598_1_ == Hand.OFF_HAND);
@@ -2768,6 +2815,9 @@ @@ -2778,6 +2824,9 @@
vector3d1 = vector3d1.func_178789_a(-this.field_70125_A * ((float)Math.PI / 180F)); vector3d1 = vector3d1.func_178789_a(-this.field_70125_A * ((float)Math.PI / 180F));
vector3d1 = vector3d1.func_178785_b(-this.field_70177_z * ((float)Math.PI / 180F)); vector3d1 = vector3d1.func_178785_b(-this.field_70177_z * ((float)Math.PI / 180F));
vector3d1 = vector3d1.func_72441_c(this.func_226277_ct_(), this.func_226280_cw_(), this.func_226281_cx_()); vector3d1 = vector3d1.func_72441_c(this.func_226277_ct_(), this.func_226280_cw_(), this.func_226281_cx_());
@ -410,18 +409,17 @@
this.field_70170_p.func_195594_a(new ItemParticleData(ParticleTypes.field_197591_B, p_195062_1_), vector3d1.field_72450_a, vector3d1.field_72448_b, vector3d1.field_72449_c, vector3d.field_72450_a, vector3d.field_72448_b + 0.05D, vector3d.field_72449_c); this.field_70170_p.func_195594_a(new ItemParticleData(ParticleTypes.field_197591_B, p_195062_1_), vector3d1.field_72450_a, vector3d1.field_72448_b, vector3d1.field_72449_c, vector3d.field_72450_a, vector3d.field_72448_b + 0.05D, vector3d.field_72449_c);
} }
@@ -2779,7 +2829,9 @@ @@ -2790,7 +2839,8 @@
} else { } else {
if (!this.field_184627_bm.func_190926_b() && this.func_184587_cr()) { if (!this.field_184627_bm.func_190926_b() && this.func_184587_cr()) {
this.func_226293_b_(this.field_184627_bm, 16); this.func_226293_b_(this.field_184627_bm, 16);
- this.func_184611_a(this.func_184600_cs(), this.field_184627_bm.func_77950_b(this.field_70170_p, this)); - ItemStack itemstack = this.field_184627_bm.func_77950_b(this.field_70170_p, this);
+ ItemStack copy = this.field_184627_bm.func_77946_l(); + ItemStack copy = this.field_184627_bm.func_77946_l();
+ ItemStack stack = net.minecraftforge.event.ForgeEventFactory.onItemUseFinish(this, copy, func_184605_cv(), this.field_184627_bm.func_77950_b(this.field_70170_p, this)); + ItemStack itemstack = net.minecraftforge.event.ForgeEventFactory.onItemUseFinish(this, copy, func_184605_cv(), this.field_184627_bm.func_77950_b(this.field_70170_p, this));
+ this.func_184611_a(this.func_184600_cs(), stack); if (itemstack != this.field_184627_bm) {
this.func_184602_cy(); this.func_184611_a(hand, itemstack);
} }
@@ -2815,7 +2865,11 @@
@@ -2800,7 +2852,11 @@
public void func_184597_cx() { public void func_184597_cx() {
if (!this.field_184627_bm.func_190926_b()) { if (!this.field_184627_bm.func_190926_b()) {
@ -433,7 +431,7 @@
if (this.field_184627_bm.func_222122_m()) { if (this.field_184627_bm.func_222122_m()) {
this.func_184608_ct(); this.func_184608_ct();
} }
@@ -2949,8 +3005,8 @@ @@ -2964,8 +3018,8 @@
} }
BlockState blockstate = this.field_70170_p.func_180495_p(p_213342_1_); BlockState blockstate = this.field_70170_p.func_180495_p(p_213342_1_);
@ -444,7 +442,7 @@
} }
this.func_213301_b(Pose.SLEEPING); this.func_213301_b(Pose.SLEEPING);
@@ -2966,15 +3022,15 @@ @@ -2981,15 +3035,15 @@
private boolean func_213359_p() { private boolean func_213359_p() {
return this.func_213374_dv().map((p_241350_1_) -> { return this.func_213374_dv().map((p_241350_1_) -> {
@ -460,10 +458,10 @@
- this.field_70170_p.func_180501_a(p_241348_1_, blockstate.func_206870_a(BedBlock.field_176471_b, Boolean.valueOf(false)), 3); - this.field_70170_p.func_180501_a(p_241348_1_, blockstate.func_206870_a(BedBlock.field_176471_b, Boolean.valueOf(false)), 3);
+ if (blockstate.isBed(field_70170_p, p_241348_1_, this)) { + if (blockstate.isBed(field_70170_p, p_241348_1_, this)) {
+ blockstate.setBedOccupied(field_70170_p, p_241348_1_, this, false); + blockstate.setBedOccupied(field_70170_p, p_241348_1_, this, false);
Vector3d vector3d1 = BedBlock.func_220172_a(this.func_200600_R(), this.field_70170_p, p_241348_1_, 0).orElseGet(() -> { Vector3d vector3d1 = BedBlock.func_242652_a(this.func_200600_R(), this.field_70170_p, p_241348_1_, this.field_70177_z).orElseGet(() -> {
BlockPos blockpos = p_241348_1_.func_177984_a(); BlockPos blockpos = p_241348_1_.func_177984_a();
return new Vector3d((double)blockpos.func_177958_n() + 0.5D, (double)blockpos.func_177956_o() + 0.1D, (double)blockpos.func_177952_p() + 0.5D); return new Vector3d((double)blockpos.func_177958_n() + 0.5D, (double)blockpos.func_177956_o() + 0.1D, (double)blockpos.func_177952_p() + 0.5D);
@@ -2993,7 +3049,9 @@ @@ -3012,7 +3066,9 @@
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public Direction func_213376_dz() { public Direction func_213376_dz() {
BlockPos blockpos = this.func_213374_dv().orElse((BlockPos)null); BlockPos blockpos = this.func_213374_dv().orElse((BlockPos)null);
@ -474,11 +472,10 @@
} }
public boolean func_70094_T() { public boolean func_70094_T() {
@@ -3062,4 +3120,58 @@ @@ -3082,6 +3138,60 @@
public void func_213334_d(Hand p_213334_1_) {
this.func_213361_c(p_213334_1_ == Hand.MAIN_HAND ? EquipmentSlotType.MAINHAND : EquipmentSlotType.OFFHAND); this.func_213361_c(p_213334_1_ == Hand.MAIN_HAND ? EquipmentSlotType.MAINHAND : EquipmentSlotType.OFFHAND);
} }
+
+ /* ==== FORGE START ==== */ + /* ==== FORGE START ==== */
+ /*** + /***
+ * Removes all potion effects that have curativeItem as a curative item for its effect + * Removes all potion effects that have curativeItem as a curative item for its effect
@ -532,4 +529,7 @@
+ handlers[x].invalidate(); + handlers[x].invalidate();
+ } + }
+ } + }
} +
@OnlyIn(Dist.CLIENT)
public AxisAlignedBB func_184177_bl() {
if (this.func_184582_a(EquipmentSlotType.HEAD).func_77973_b() == Items.field_196151_dA) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/MobEntity.java --- a/net/minecraft/entity/MobEntity.java
+++ b/net/minecraft/entity/MobEntity.java +++ b/net/minecraft/entity/MobEntity.java
@@ -197,6 +197,7 @@ @@ -198,6 +198,7 @@
public void func_70624_b(@Nullable LivingEntity p_70624_1_) { public void func_70624_b(@Nullable LivingEntity p_70624_1_) {
this.field_70696_bz = p_70624_1_; this.field_70696_bz = p_70624_1_;
@ -8,7 +8,7 @@
} }
public boolean func_213358_a(EntityType<?> p_213358_1_) { public boolean func_213358_a(EntityType<?> p_213358_1_) {
@@ -485,7 +486,7 @@ @@ -486,7 +487,7 @@
public void func_70636_d() { public void func_70636_d() {
super.func_70636_d(); super.func_70636_d();
this.field_70170_p.func_217381_Z().func_76320_a("looting"); this.field_70170_p.func_217381_Z().func_76320_a("looting");
@ -17,7 +17,7 @@
for(ItemEntity itementity : this.field_70170_p.func_217357_a(ItemEntity.class, this.func_174813_aQ().func_72314_b(1.0D, 0.0D, 1.0D))) { for(ItemEntity itementity : this.field_70170_p.func_217357_a(ItemEntity.class, this.func_174813_aQ().func_72314_b(1.0D, 0.0D, 1.0D))) {
if (!itementity.field_70128_L && !itementity.func_92059_d().func_190926_b() && !itementity.func_174874_s() && this.func_230293_i_(itementity.func_92059_d())) { if (!itementity.field_70128_L && !itementity.func_92059_d().func_190926_b() && !itementity.func_174874_s() && this.func_230293_i_(itementity.func_92059_d())) {
this.func_175445_a(itementity); this.func_175445_a(itementity);
@@ -638,6 +639,14 @@ @@ -639,6 +640,14 @@
this.func_70106_y(); this.func_70106_y();
} else if (!this.func_104002_bU() && !this.func_213392_I()) { } else if (!this.func_104002_bU() && !this.func_213392_I()) {
Entity entity = this.field_70170_p.func_217362_a(this, -1.0D); Entity entity = this.field_70170_p.func_217362_a(this, -1.0D);
@ -32,7 +32,7 @@
if (entity != null) { if (entity != null) {
double d0 = entity.func_70068_e(this); double d0 = entity.func_70068_e(this);
int i = this.func_200600_R().func_220339_d().func_233671_f_(); int i = this.func_200600_R().func_220339_d().func_233671_f_();
@@ -877,6 +886,8 @@ @@ -878,6 +887,8 @@
} }
public static EquipmentSlotType func_184640_d(ItemStack p_184640_0_) { public static EquipmentSlotType func_184640_d(ItemStack p_184640_0_) {
@ -41,7 +41,7 @@
Item item = p_184640_0_.func_77973_b(); Item item = p_184640_0_.func_77973_b();
if (item != Blocks.field_196625_cS.func_199767_j() && (!(item instanceof BlockItem) || !(((BlockItem)item).func_179223_d() instanceof AbstractSkullBlock))) { if (item != Blocks.field_196625_cS.func_199767_j() && (!(item instanceof BlockItem) || !(((BlockItem)item).func_179223_d() instanceof AbstractSkullBlock))) {
if (item instanceof ArmorItem) { if (item instanceof ArmorItem) {
@@ -884,7 +895,7 @@ @@ -885,7 +896,7 @@
} else if (item == Items.field_185160_cR) { } else if (item == Items.field_185160_cR) {
return EquipmentSlotType.CHEST; return EquipmentSlotType.CHEST;
} else { } else {

View File

@ -1,10 +1,10 @@
--- a/net/minecraft/entity/effect/LightningBoltEntity.java --- a/net/minecraft/entity/effect/LightningBoltEntity.java
+++ b/net/minecraft/entity/effect/LightningBoltEntity.java +++ b/net/minecraft/entity/effect/LightningBoltEntity.java
@@ -82,6 +82,7 @@ @@ -83,6 +83,7 @@
List<Entity> list = this.field_70170_p.func_175674_a(this, new AxisAlignedBB(this.func_226277_ct_() - 3.0D, this.func_226278_cu_() - 3.0D, this.func_226281_cx_() - 3.0D, this.func_226277_ct_() + 3.0D, this.func_226278_cu_() + 6.0D + 3.0D, this.func_226281_cx_() + 3.0D), Entity::func_70089_S); List<Entity> list = this.field_70170_p.func_175674_a(this, new AxisAlignedBB(this.func_226277_ct_() - 3.0D, this.func_226278_cu_() - 3.0D, this.func_226281_cx_() - 3.0D, this.func_226277_ct_() + 3.0D, this.func_226278_cu_() + 6.0D + 3.0D, this.func_226281_cx_() + 3.0D), Entity::func_70089_S);
for(Entity entity : list) { for(Entity entity : list) {
+ if (!net.minecraftforge.event.ForgeEventFactory.onEntityStruckByLightning(entity, this)) + if (!net.minecraftforge.event.ForgeEventFactory.onEntityStruckByLightning(entity, this))
entity.func_70077_a(this); entity.func_241841_a((ServerWorld)this.field_70170_p, this);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/ArmorStandEntity.java --- a/net/minecraft/entity/item/ArmorStandEntity.java
+++ b/net/minecraft/entity/item/ArmorStandEntity.java +++ b/net/minecraft/entity/item/ArmorStandEntity.java
@@ -55,7 +55,7 @@ @@ -60,7 +60,7 @@
public static final DataParameter<Rotations> field_184806_f = EntityDataManager.func_187226_a(ArmorStandEntity.class, DataSerializers.field_187199_i); public static final DataParameter<Rotations> field_184806_f = EntityDataManager.func_187226_a(ArmorStandEntity.class, DataSerializers.field_187199_i);
public static final DataParameter<Rotations> field_184807_g = EntityDataManager.func_187226_a(ArmorStandEntity.class, DataSerializers.field_187199_i); public static final DataParameter<Rotations> field_184807_g = EntityDataManager.func_187226_a(ArmorStandEntity.class, DataSerializers.field_187199_i);
private static final Predicate<Entity> field_184798_bv = (p_200617_0_) -> { private static final Predicate<Entity> field_184798_bv = (p_200617_0_) -> {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/BoatEntity.java --- a/net/minecraft/entity/item/BoatEntity.java
+++ b/net/minecraft/entity/item/BoatEntity.java +++ b/net/minecraft/entity/item/BoatEntity.java
@@ -467,7 +467,7 @@ @@ -468,7 +468,7 @@
blockpos$mutable.func_181079_c(l1, k2, i2); blockpos$mutable.func_181079_c(l1, k2, i2);
BlockState blockstate = this.field_70170_p.func_180495_p(blockpos$mutable); BlockState blockstate = this.field_70170_p.func_180495_p(blockpos$mutable);
if (!(blockstate.func_177230_c() instanceof LilyPadBlock) && VoxelShapes.func_197879_c(blockstate.func_196952_d(this.field_70170_p, blockpos$mutable).func_197751_a((double)l1, (double)k2, (double)i2), voxelshape, IBooleanFunction.field_223238_i_)) { if (!(blockstate.func_177230_c() instanceof LilyPadBlock) && VoxelShapes.func_197879_c(blockstate.func_196952_d(this.field_70170_p, blockpos$mutable).func_197751_a((double)l1, (double)k2, (double)i2), voxelshape, IBooleanFunction.field_223238_i_)) {
@ -9,7 +9,7 @@
++k1; ++k1;
} }
} }
@@ -820,6 +820,16 @@ @@ -817,6 +817,16 @@
return this.field_184469_aF == BoatEntity.Status.UNDER_WATER || this.field_184469_aF == BoatEntity.Status.UNDER_FLOWING_WATER; return this.field_184469_aF == BoatEntity.Status.UNDER_WATER || this.field_184469_aF == BoatEntity.Status.UNDER_FLOWING_WATER;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/HangingEntity.java --- a/net/minecraft/entity/item/HangingEntity.java
+++ b/net/minecraft/entity/item/HangingEntity.java +++ b/net/minecraft/entity/item/HangingEntity.java
@@ -119,6 +119,8 @@ @@ -120,6 +120,8 @@
int j1 = (j - 1) / -2; int j1 = (j - 1) / -2;
blockpos$mutable.func_189533_g(blockpos).func_189534_c(direction, k + i1).func_189534_c(Direction.UP, l + j1); blockpos$mutable.func_189533_g(blockpos).func_189534_c(direction, k + i1).func_189534_c(Direction.UP, l + j1);
BlockState blockstate = this.field_70170_p.func_180495_p(blockpos$mutable); BlockState blockstate = this.field_70170_p.func_180495_p(blockpos$mutable);

View File

@ -27,17 +27,7 @@
if (this.func_92059_d().func_190926_b()) { if (this.func_92059_d().func_190926_b()) {
this.func_70106_y(); this.func_70106_y();
} else { } else {
@@ -107,7 +113,8 @@ @@ -144,7 +150,14 @@
this.func_213315_a(MoverType.SELF, this.func_213322_ci());
float f = 0.98F;
if (this.field_70122_E) {
- f = this.field_70170_p.func_180495_p(new BlockPos(this.func_226277_ct_(), this.func_226278_cu_() - 1.0D, this.func_226281_cx_())).func_177230_c().func_208618_m() * 0.98F;
+ BlockPos pos = new BlockPos(this.func_226277_ct_(), this.func_226278_cu_() - 1.0D, this.func_226281_cx_());
+ f = this.field_70170_p.func_180495_p(pos).getSlipperiness(this.field_70170_p, pos, this) * 0.98F;
}
this.func_213317_d(this.func_213322_ci().func_216372_d((double)f, 0.98D, (double)f));
@@ -140,7 +147,14 @@
} }
} }
@ -53,7 +43,7 @@
this.func_70106_y(); this.func_70106_y();
} }
@@ -198,6 +212,8 @@ @@ -202,6 +215,8 @@
return false; return false;
} else if (p_226532_1_.func_77942_o() ^ p_226532_0_.func_77942_o()) { } else if (p_226532_1_.func_77942_o() ^ p_226532_0_.func_77942_o()) {
return false; return false;
@ -62,7 +52,7 @@
} else { } else {
return !p_226532_1_.func_77942_o() || p_226532_1_.func_77978_p().equals(p_226532_0_.func_77978_p()); return !p_226532_1_.func_77942_o() || p_226532_1_.func_77978_p().equals(p_226532_0_.func_77978_p());
} }
@@ -231,6 +247,7 @@ @@ -235,6 +250,7 @@
} }
public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) { public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) {
@ -70,7 +60,7 @@
if (this.func_180431_b(p_70097_1_)) { if (this.func_180431_b(p_70097_1_)) {
return false; return false;
} else if (!this.func_92059_d().func_190926_b() && this.func_92059_d().func_77973_b() == Items.field_151156_bN && p_70097_1_.func_94541_c()) { } else if (!this.func_92059_d().func_190926_b() && this.func_92059_d().func_77973_b() == Items.field_151156_bN && p_70097_1_.func_94541_c()) {
@@ -252,6 +269,7 @@ @@ -256,6 +272,7 @@
p_213281_1_.func_74777_a("Health", (short)this.field_70291_e); p_213281_1_.func_74777_a("Health", (short)this.field_70291_e);
p_213281_1_.func_74777_a("Age", (short)this.field_70292_b); p_213281_1_.func_74777_a("Age", (short)this.field_70292_b);
p_213281_1_.func_74777_a("PickupDelay", (short)this.field_145804_b); p_213281_1_.func_74777_a("PickupDelay", (short)this.field_145804_b);
@ -78,7 +68,7 @@
if (this.func_200214_m() != null) { if (this.func_200214_m() != null) {
p_213281_1_.func_186854_a("Thrower", this.func_200214_m()); p_213281_1_.func_186854_a("Thrower", this.func_200214_m());
} }
@@ -272,6 +290,7 @@ @@ -276,6 +293,7 @@
if (p_70037_1_.func_74764_b("PickupDelay")) { if (p_70037_1_.func_74764_b("PickupDelay")) {
this.field_145804_b = p_70037_1_.func_74765_d("PickupDelay"); this.field_145804_b = p_70037_1_.func_74765_d("PickupDelay");
} }
@ -86,7 +76,7 @@
if (p_70037_1_.func_186855_b("Owner")) { if (p_70037_1_.func_186855_b("Owner")) {
this.field_145802_g = p_70037_1_.func_186857_a("Owner"); this.field_145802_g = p_70037_1_.func_186857_a("Owner");
@@ -291,10 +310,18 @@ @@ -295,10 +313,18 @@
public void func_70100_b_(PlayerEntity p_70100_1_) { public void func_70100_b_(PlayerEntity p_70100_1_) {
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {
@ -106,7 +96,7 @@
p_70100_1_.func_71001_a(this, i); p_70100_1_.func_71001_a(this, i);
if (itemstack.func_190926_b()) { if (itemstack.func_190926_b()) {
this.func_70106_y(); this.func_70106_y();
@@ -318,8 +345,8 @@ @@ -322,8 +348,8 @@
} }
@Nullable @Nullable
@ -117,7 +107,7 @@
if (!this.field_70170_p.field_72995_K && entity instanceof ItemEntity) { if (!this.field_70170_p.field_72995_K && entity instanceof ItemEntity) {
((ItemEntity)entity).func_85054_d(); ((ItemEntity)entity).func_85054_d();
} }
@@ -392,7 +419,7 @@ @@ -396,7 +422,7 @@
public void func_174870_v() { public void func_174870_v() {
this.func_174871_r(); this.func_174871_r();

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/LeashKnotEntity.java --- a/net/minecraft/entity/item/LeashKnotEntity.java
+++ b/net/minecraft/entity/item/LeashKnotEntity.java +++ b/net/minecraft/entity/item/LeashKnotEntity.java
@@ -44,6 +44,7 @@ @@ -45,6 +45,7 @@
protected void func_174856_o() { protected void func_174856_o() {
this.func_226288_n_((double)this.field_174861_a.func_177958_n() + 0.5D, (double)this.field_174861_a.func_177956_o() + 0.5D, (double)this.field_174861_a.func_177952_p() + 0.5D); this.func_226288_n_((double)this.field_174861_a.func_177958_n() + 0.5D, (double)this.field_174861_a.func_177956_o() + 0.5D, (double)this.field_174861_a.func_177952_p() + 0.5D);

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/minecart/AbstractMinecartEntity.java --- a/net/minecraft/entity/item/minecart/AbstractMinecartEntity.java
+++ b/net/minecraft/entity/item/minecart/AbstractMinecartEntity.java +++ b/net/minecraft/entity/item/minecart/AbstractMinecartEntity.java
@@ -47,7 +47,7 @@ @@ -48,7 +48,7 @@
import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.OnlyIn;
@ -9,7 +9,7 @@
private static final DataParameter<Integer> field_184265_a = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187192_b); private static final DataParameter<Integer> field_184265_a = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187192_b);
private static final DataParameter<Integer> field_184266_b = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187192_b); private static final DataParameter<Integer> field_184266_b = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187192_b);
private static final DataParameter<Float> field_184267_c = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187193_c); private static final DataParameter<Float> field_184267_c = EntityDataManager.func_187226_a(AbstractMinecartEntity.class, DataSerializers.field_187193_c);
@@ -88,6 +88,7 @@ @@ -89,6 +89,7 @@
private double field_70507_ar; private double field_70507_ar;
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
private double field_70506_as; private double field_70506_as;
@ -17,12 +17,7 @@
protected AbstractMinecartEntity(EntityType<?> p_i48538_1_, World p_i48538_2_) { protected AbstractMinecartEntity(EntityType<?> p_i48538_1_, World p_i48538_2_) {
super(p_i48538_1_, p_i48538_2_); super(p_i48538_1_, p_i48538_2_);
@@ -134,11 +135,12 @@ @@ -138,7 +139,7 @@
@Nullable
public AxisAlignedBB func_70114_g(Entity p_70114_1_) {
+ if (getCollisionHandler() != null) return getCollisionHandler().getCollisionBox(this, p_70114_1_);
return p_70114_1_.func_70104_M() ? p_70114_1_.func_174813_aQ() : null;
} }
public boolean func_70104_M() { public boolean func_70104_M() {
@ -30,8 +25,8 @@
+ return canBePushed; + return canBePushed;
} }
public double func_70042_X() { protected Vector3d func_241839_a(Direction.Axis p_241839_1_, TeleportationRepositioner.Result p_241839_2_) {
@@ -304,9 +306,9 @@ @@ -307,9 +308,9 @@
BlockPos blockpos = new BlockPos(i, j, k); BlockPos blockpos = new BlockPos(i, j, k);
BlockState blockstate = this.field_70170_p.func_180495_p(blockpos); BlockState blockstate = this.field_70170_p.func_180495_p(blockpos);
@ -43,7 +38,7 @@
this.func_96095_a(i, j, k, blockstate.func_177229_b(PoweredRailBlock.field_176569_M)); this.func_96095_a(i, j, k, blockstate.func_177229_b(PoweredRailBlock.field_176569_M));
} }
} else { } else {
@@ -331,8 +333,11 @@ @@ -334,8 +335,11 @@
} }
this.func_70101_b(this.field_70177_z, this.field_70125_A); this.func_70101_b(this.field_70177_z, this.field_70125_A);
@ -57,7 +52,7 @@
if (!list.isEmpty()) { if (!list.isEmpty()) {
for(int l = 0; l < list.size(); ++l) { for(int l = 0; l < list.size(); ++l) {
Entity entity1 = list.get(l); Entity entity1 = list.get(l);
@@ -344,7 +349,7 @@ @@ -347,7 +351,7 @@
} }
} }
} else { } else {
@ -66,15 +61,7 @@
if (!this.func_184196_w(entity) && entity.func_70104_M() && entity instanceof AbstractMinecartEntity) { if (!this.func_184196_w(entity) && entity.func_70104_M() && entity instanceof AbstractMinecartEntity) {
entity.func_70108_f(this); entity.func_70108_f(this);
} }
@@ -352,6 +357,7 @@ @@ -372,16 +376,23 @@
}
this.func_233566_aG_();
+ //net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.minecart.MinecartUpdateEvent(this, this.getCurrentRailPosition()));
}
}
@@ -363,16 +369,23 @@
} }
protected void func_180459_n() { protected void func_180459_n() {
@ -100,7 +87,7 @@
} }
} }
@@ -387,29 +400,29 @@ @@ -396,29 +407,29 @@
boolean flag = false; boolean flag = false;
boolean flag1 = false; boolean flag1 = false;
AbstractRailBlock abstractrailblock = (AbstractRailBlock)p_180460_2_.func_177230_c(); AbstractRailBlock abstractrailblock = (AbstractRailBlock)p_180460_2_.func_177230_c();
@ -136,7 +123,7 @@
++d1; ++d1;
} }
@@ -440,7 +453,7 @@ @@ -449,7 +460,7 @@
} }
} }
@ -145,7 +132,7 @@
double d22 = Math.sqrt(func_213296_b(this.func_213322_ci())); double d22 = Math.sqrt(func_213296_b(this.func_213322_ci()));
if (d22 < 0.03D) { if (d22 < 0.03D) {
this.func_213317_d(Vector3d.field_186680_a); this.func_213317_d(Vector3d.field_186680_a);
@@ -469,10 +482,7 @@ @@ -478,10 +489,7 @@
d0 = d23 + d4 * d14; d0 = d23 + d4 * d14;
d2 = d10 + d5 * d14; d2 = d10 + d5 * d14;
this.func_70107_b(d0, d1, d2); this.func_70107_b(d0, d1, d2);
@ -157,7 +144,7 @@
if (vector3i.func_177956_o() != 0 && MathHelper.func_76128_c(this.func_226277_ct_()) - p_180460_1_.func_177958_n() == vector3i.func_177958_n() && MathHelper.func_76128_c(this.func_226281_cx_()) - p_180460_1_.func_177952_p() == vector3i.func_177952_p()) { if (vector3i.func_177956_o() != 0 && MathHelper.func_76128_c(this.func_226277_ct_()) - p_180460_1_.func_177958_n() == vector3i.func_177958_n() && MathHelper.func_76128_c(this.func_226281_cx_()) - p_180460_1_.func_177952_p() == vector3i.func_177952_p()) {
this.func_70107_b(this.func_226277_ct_(), this.func_226278_cu_() + (double)vector3i.func_177956_o(), this.func_226281_cx_()); this.func_70107_b(this.func_226277_ct_(), this.func_226278_cu_() + (double)vector3i.func_177956_o(), this.func_226281_cx_());
} else if (vector3i1.func_177956_o() != 0 && MathHelper.func_76128_c(this.func_226277_ct_()) - p_180460_1_.func_177958_n() == vector3i1.func_177958_n() && MathHelper.func_76128_c(this.func_226281_cx_()) - p_180460_1_.func_177952_p() == vector3i1.func_177952_p()) { } else if (vector3i1.func_177956_o() != 0 && MathHelper.func_76128_c(this.func_226277_ct_()) - p_180460_1_.func_177958_n() == vector3i1.func_177958_n() && MathHelper.func_76128_c(this.func_226281_cx_()) - p_180460_1_.func_177952_p() == vector3i1.func_177952_p()) {
@@ -500,7 +510,10 @@ @@ -509,7 +517,10 @@
this.func_213293_j(d26 * (double)(j - p_180460_1_.func_177958_n()), vector3d5.field_72448_b, d26 * (double)(i - p_180460_1_.func_177952_p())); this.func_213293_j(d26 * (double)(j - p_180460_1_.func_177958_n()), vector3d5.field_72448_b, d26 * (double)(i - p_180460_1_.func_177952_p()));
} }
@ -169,7 +156,7 @@
Vector3d vector3d6 = this.func_213322_ci(); Vector3d vector3d6 = this.func_213322_ci();
double d27 = Math.sqrt(func_213296_b(vector3d6)); double d27 = Math.sqrt(func_213296_b(vector3d6));
if (d27 > 0.01D) { if (d27 > 0.01D) {
@@ -555,7 +568,7 @@ @@ -564,7 +575,7 @@
BlockState blockstate = this.field_70170_p.func_180495_p(new BlockPos(i, j, k)); BlockState blockstate = this.field_70170_p.func_180495_p(new BlockPos(i, j, k));
if (AbstractRailBlock.func_208487_j(blockstate)) { if (AbstractRailBlock.func_208487_j(blockstate)) {
@ -178,7 +165,7 @@
p_70495_3_ = (double)j; p_70495_3_ = (double)j;
if (railshape.func_208092_c()) { if (railshape.func_208092_c()) {
p_70495_3_ = (double)(j + 1); p_70495_3_ = (double)(j + 1);
@@ -594,7 +607,7 @@ @@ -603,7 +614,7 @@
BlockState blockstate = this.field_70170_p.func_180495_p(new BlockPos(i, j, k)); BlockState blockstate = this.field_70170_p.func_180495_p(new BlockPos(i, j, k));
if (AbstractRailBlock.func_208487_j(blockstate)) { if (AbstractRailBlock.func_208487_j(blockstate)) {
@ -187,7 +174,7 @@
Pair<Vector3i, Vector3i> pair = func_226573_a_(railshape); Pair<Vector3i, Vector3i> pair = func_226573_a_(railshape);
Vector3i vector3i = pair.getFirst(); Vector3i vector3i = pair.getFirst();
Vector3i vector3i1 = pair.getSecond(); Vector3i vector3i1 = pair.getSecond();
@@ -657,6 +670,11 @@ @@ -666,6 +677,11 @@
} }
public void func_70108_f(Entity p_70108_1_) { public void func_70108_f(Entity p_70108_1_) {
@ -199,7 +186,7 @@
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {
if (!p_70108_1_.field_70145_X && !this.field_70145_X) { if (!p_70108_1_.field_70145_X && !this.field_70145_X) {
if (!this.func_184196_w(p_70108_1_)) { if (!this.func_184196_w(p_70108_1_)) {
@@ -692,11 +710,11 @@ @@ -701,11 +717,11 @@
Vector3d vector3d2 = this.func_213322_ci(); Vector3d vector3d2 = this.func_213322_ci();
Vector3d vector3d3 = p_70108_1_.func_213322_ci(); Vector3d vector3d3 = p_70108_1_.func_213322_ci();
@ -213,7 +200,7 @@
p_70108_1_.func_213317_d(vector3d3.func_216372_d(0.2D, 1.0D, 0.2D)); p_70108_1_.func_213317_d(vector3d3.func_216372_d(0.2D, 1.0D, 0.2D));
p_70108_1_.func_70024_g(vector3d2.field_72450_a + d0, 0.0D, vector3d2.field_72449_c + d1); p_70108_1_.func_70024_g(vector3d2.field_72450_a + d0, 0.0D, vector3d2.field_72449_c + d1);
this.func_213317_d(vector3d2.func_216372_d(0.95D, 1.0D, 0.95D)); this.func_213317_d(vector3d2.func_216372_d(0.95D, 1.0D, 0.95D));
@@ -802,6 +820,40 @@ @@ -811,6 +827,40 @@
return new SSpawnObjectPacket(this); return new SSpawnObjectPacket(this);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/item/minecart/ContainerMinecartEntity.java --- a/net/minecraft/entity/item/minecart/ContainerMinecartEntity.java
+++ b/net/minecraft/entity/item/minecart/ContainerMinecartEntity.java +++ b/net/minecraft/entity/item/minecart/ContainerMinecartEntity.java
@@ -111,17 +111,19 @@ @@ -118,17 +118,19 @@
} }
@Nullable @Nullable
@ -24,25 +24,25 @@
} }
protected void func_213281_b(CompoundNBT p_213281_1_) { protected void func_213281_b(CompoundNBT p_213281_1_) {
@@ -150,6 +152,8 @@ @@ -157,6 +159,8 @@
} }
public ActionResultType func_184230_a(PlayerEntity p_184230_1_, Hand p_184230_2_) { public ActionResultType func_184230_a(PlayerEntity p_184230_1_, Hand p_184230_2_) {
+ ActionResultType ret = super.func_184230_a(p_184230_1_, p_184230_2_); + ActionResultType ret = super.func_184230_a(p_184230_1_, p_184230_2_);
+ if (ret.func_226246_a_()) return ret; + if (ret.func_226246_a_()) return ret;
p_184230_1_.func_213829_a(this); p_184230_1_.func_213829_a(this);
return ActionResultType.func_233537_a_(this.field_70170_p.field_72995_K); if (!p_184230_1_.field_70170_p.field_72995_K) {
} PiglinTasks.func_234478_a_(p_184230_1_, true);
@@ -173,6 +177,8 @@ @@ -185,6 +189,8 @@
this.field_184290_c = null; this.field_184290_c = null;
LootContext.Builder lootcontext$builder = (new LootContext.Builder((ServerWorld)this.field_70170_p)).func_216015_a(LootParameters.field_216286_f, this.func_233580_cy_()).func_216016_a(this.field_184291_d); LootContext.Builder lootcontext$builder = (new LootContext.Builder((ServerWorld)this.field_70170_p)).func_216015_a(LootParameters.field_237457_g_, this.func_213303_ch()).func_216016_a(this.field_184291_d);
+ // Forge: add this entity to loot context, however, currently Vanilla uses 'this' for the player creating the chests. So we take over 'killer_entity' for this. + // Forge: add this entity to loot context, however, currently Vanilla uses 'this' for the player creating the chests. So we take over 'killer_entity' for this.
+ lootcontext$builder.func_216015_a(LootParameters.field_216284_d, this); + lootcontext$builder.func_216015_a(LootParameters.field_216284_d, this);
if (p_184288_1_ != null) { if (p_184288_1_ != null) {
lootcontext$builder.func_186469_a(p_184288_1_.func_184817_da()).func_216015_a(LootParameters.field_216281_a, p_184288_1_); lootcontext$builder.func_186469_a(p_184288_1_.func_184817_da()).func_216015_a(LootParameters.field_216281_a, p_184288_1_);
} }
@@ -203,4 +209,17 @@ @@ -215,4 +221,17 @@
} }
protected abstract Container func_213968_a(int p_213968_1_, PlayerInventory p_213968_2_); protected abstract Container func_213968_a(int p_213968_1_, PlayerInventory p_213968_2_);

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/merchant/villager/AbstractVillagerEntity.java --- a/net/minecraft/entity/merchant/villager/AbstractVillagerEntity.java
+++ b/net/minecraft/entity/merchant/villager/AbstractVillagerEntity.java +++ b/net/minecraft/entity/merchant/villager/AbstractVillagerEntity.java
@@ -164,9 +164,9 @@ @@ -165,9 +165,9 @@
} }
@Nullable @Nullable

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/merchant/villager/VillagerEntity.java --- a/net/minecraft/entity/merchant/villager/VillagerEntity.java
+++ b/net/minecraft/entity/merchant/villager/VillagerEntity.java +++ b/net/minecraft/entity/merchant/villager/VillagerEntity.java
@@ -240,7 +240,7 @@ @@ -241,7 +241,7 @@
public ActionResultType func_230254_b_(PlayerEntity p_230254_1_, Hand p_230254_2_) { public ActionResultType func_230254_b_(PlayerEntity p_230254_1_, Hand p_230254_2_) {
ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_); ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_);
@ -9,7 +9,7 @@
if (this.func_70631_g_()) { if (this.func_70631_g_()) {
this.func_213756_es(); this.func_213756_es();
return ActionResultType.func_233537_a_(this.field_70170_p.field_72995_K); return ActionResultType.func_233537_a_(this.field_70170_p.field_72995_K);
@@ -628,7 +628,8 @@ @@ -634,7 +634,8 @@
} }
protected ITextComponent func_225513_by_() { protected ITextComponent func_225513_by_() {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/CreeperEntity.java --- a/net/minecraft/entity/monster/CreeperEntity.java
+++ b/net/minecraft/entity/monster/CreeperEntity.java +++ b/net/minecraft/entity/monster/CreeperEntity.java
@@ -215,7 +215,7 @@ @@ -216,7 +216,7 @@
private void func_146077_cc() { private void func_146077_cc() {
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/EndermanEntity.java --- a/net/minecraft/entity/monster/EndermanEntity.java
+++ b/net/minecraft/entity/monster/EndermanEntity.java +++ b/net/minecraft/entity/monster/EndermanEntity.java
@@ -100,7 +100,6 @@ @@ -98,7 +98,6 @@
} }
public void func_70624_b(@Nullable LivingEntity p_70624_1_) { public void func_70624_b(@Nullable LivingEntity p_70624_1_) {
@ -8,7 +8,7 @@
ModifiableAttributeInstance modifiableattributeinstance = this.func_110148_a(Attributes.field_233821_d_); ModifiableAttributeInstance modifiableattributeinstance = this.func_110148_a(Attributes.field_233821_d_);
if (p_70624_1_ == null) { if (p_70624_1_ == null) {
this.field_184721_by = 0; this.field_184721_by = 0;
@@ -115,6 +114,7 @@ @@ -113,6 +112,7 @@
} }
} }
@ -16,7 +16,7 @@
} }
protected void func_70088_a() { protected void func_70088_a() {
@@ -188,7 +188,7 @@ @@ -186,7 +186,7 @@
private boolean func_70821_d(PlayerEntity p_70821_1_) { private boolean func_70821_d(PlayerEntity p_70821_1_) {
ItemStack itemstack = p_70821_1_.field_71071_by.field_70460_b.get(3); ItemStack itemstack = p_70821_1_.field_71071_by.field_70460_b.get(3);
@ -25,7 +25,7 @@
return false; return false;
} else { } else {
Vector3d vector3d = p_70821_1_.func_70676_i(1.0F).func_72432_b(); Vector3d vector3d = p_70821_1_.func_70676_i(1.0F).func_72432_b();
@@ -267,7 +267,9 @@ @@ -265,7 +265,9 @@
boolean flag = blockstate.func_185904_a().func_76230_c(); boolean flag = blockstate.func_185904_a().func_76230_c();
boolean flag1 = blockstate.func_204520_s().func_206884_a(FluidTags.field_206959_a); boolean flag1 = blockstate.func_204520_s().func_206884_a(FluidTags.field_206959_a);
if (flag && !flag1) { if (flag && !flag1) {
@ -36,7 +36,7 @@
if (flag2 && !this.func_174814_R()) { if (flag2 && !this.func_174814_R()) {
this.field_70170_p.func_184148_a((PlayerEntity)null, this.field_70169_q, this.field_70167_r, this.field_70166_s, SoundEvents.field_187534_aX, this.func_184176_by(), 1.0F, 1.0F); this.field_70170_p.func_184148_a((PlayerEntity)null, this.field_70169_q, this.field_70167_r, this.field_70166_s, SoundEvents.field_187534_aX, this.func_184176_by(), 1.0F, 1.0F);
this.func_184185_a(SoundEvents.field_187534_aX, 1.0F, 1.0F); this.func_184185_a(SoundEvents.field_187534_aX, 1.0F, 1.0F);
@@ -431,7 +433,7 @@ @@ -429,7 +431,7 @@
public boolean func_75250_a() { public boolean func_75250_a() {
if (this.field_179475_a.func_195405_dq() == null) { if (this.field_179475_a.func_195405_dq() == null) {
return false; return false;
@ -46,24 +46,24 @@
} else { } else {
return this.field_179475_a.func_70681_au().nextInt(2000) == 0; return this.field_179475_a.func_70681_au().nextInt(2000) == 0;
@@ -449,7 +451,7 @@ @@ -449,7 +451,7 @@
BlockPos blockpos1 = blockpos.func_177977_b();
BlockState blockstate1 = iworld.func_180495_p(blockpos1);
BlockState blockstate2 = this.field_179475_a.func_195405_dq(); BlockState blockstate2 = this.field_179475_a.func_195405_dq();
- if (blockstate2 != null && this.func_220836_a(iworld, blockpos, blockstate2, blockstate, blockstate1, blockpos1)) { if (blockstate2 != null) {
+ if (blockstate2 != null && this.func_220836_a(iworld, blockpos, blockstate2, blockstate, blockstate1, blockpos1) && !net.minecraftforge.event.ForgeEventFactory.onBlockPlace(field_179475_a, net.minecraftforge.common.util.BlockSnapshot.create(iworld, blockpos1), net.minecraft.util.Direction.UP)) { blockstate2 = Block.func_199770_b(blockstate2, this.field_179475_a.field_70170_p, blockpos);
iworld.func_180501_a(blockpos, blockstate2, 3); - if (this.func_220836_a(world, blockpos, blockstate2, blockstate, blockstate1, blockpos1)) {
this.field_179475_a.func_195406_b((BlockState)null); + if (this.func_220836_a(world, blockpos, blockstate2, blockstate, blockstate1, blockpos1) && !net.minecraftforge.event.ForgeEventFactory.onBlockPlace(field_179475_a, net.minecraftforge.common.util.BlockSnapshot.create(world.func_234923_W_(), world, blockpos1), net.minecraft.util.Direction.UP)) {
} world.func_180501_a(blockpos, blockstate2, 3);
@@ -457,7 +459,7 @@ this.field_179475_a.func_195406_b((BlockState)null);
}
@@ -458,7 +460,7 @@
} }
private boolean func_220836_a(IWorldReader p_220836_1_, BlockPos p_220836_2_, BlockState p_220836_3_, BlockState p_220836_4_, BlockState p_220836_5_, BlockPos p_220836_6_) { private boolean func_220836_a(World p_220836_1_, BlockPos p_220836_2_, BlockState p_220836_3_, BlockState p_220836_4_, BlockState p_220836_5_, BlockPos p_220836_6_) {
- return p_220836_4_.func_196958_f() && !p_220836_5_.func_196958_f() && p_220836_5_.func_235785_r_(p_220836_1_, p_220836_6_) && p_220836_3_.func_196955_c(p_220836_1_, p_220836_2_); - return p_220836_4_.func_196958_f() && !p_220836_5_.func_196958_f() && !p_220836_5_.func_203425_a(Blocks.field_150357_h) && p_220836_5_.func_235785_r_(p_220836_1_, p_220836_6_) && p_220836_3_.func_196955_c(p_220836_1_, p_220836_2_) && p_220836_1_.func_72839_b(this.field_179475_a, AxisAlignedBB.func_241549_a_(Vector3d.func_237491_b_(p_220836_2_))).isEmpty();
+ return p_220836_4_.isAir(p_220836_1_, p_220836_2_) && !p_220836_5_.isAir(p_220836_1_, p_220836_6_) && p_220836_5_.func_235785_r_(p_220836_1_, p_220836_6_) && p_220836_3_.func_196955_c(p_220836_1_, p_220836_2_); + return p_220836_4_.isAir(p_220836_1_, p_220836_2_) && !p_220836_5_.isAir(p_220836_1_, p_220836_6_) && !p_220836_5_.func_203425_a(Blocks.field_150357_h) && p_220836_5_.func_235785_r_(p_220836_1_, p_220836_6_) && p_220836_3_.func_196955_c(p_220836_1_, p_220836_2_) && p_220836_1_.func_72839_b(this.field_179475_a, AxisAlignedBB.func_241549_a_(Vector3d.func_237491_b_(p_220836_2_))).isEmpty();
} }
} }
@@ -499,7 +501,7 @@ @@ -500,7 +502,7 @@
public boolean func_75250_a() { public boolean func_75250_a() {
if (this.field_179473_a.func_195405_dq() != null) { if (this.field_179473_a.func_195405_dq() != null) {
return false; return false;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/HoglinEntity.java --- a/net/minecraft/entity/monster/HoglinEntity.java
+++ b/net/minecraft/entity/monster/HoglinEntity.java +++ b/net/minecraft/entity/monster/HoglinEntity.java
@@ -275,8 +275,8 @@ @@ -279,8 +279,8 @@
return hoglinentity; return hoglinentity;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/SlimeEntity.java --- a/net/minecraft/entity/monster/SlimeEntity.java
+++ b/net/minecraft/entity/monster/SlimeEntity.java +++ b/net/minecraft/entity/monster/SlimeEntity.java
@@ -125,6 +125,7 @@ @@ -127,6 +127,7 @@
if (this.field_70122_E && !this.field_175452_bi) { if (this.field_70122_E && !this.field_175452_bi) {
int i = this.func_70809_q(); int i = this.func_70809_q();
@ -8,7 +8,7 @@
for(int j = 0; j < i * 8; ++j) { for(int j = 0; j < i * 8; ++j) {
float f = this.field_70146_Z.nextFloat() * ((float)Math.PI * 2F); float f = this.field_70146_Z.nextFloat() * ((float)Math.PI * 2F);
float f1 = this.field_70146_Z.nextFloat() * 0.5F + 0.5F; float f1 = this.field_70146_Z.nextFloat() * 0.5F + 0.5F;
@@ -176,9 +177,10 @@ @@ -178,9 +179,10 @@
return (EntityType<? extends SlimeEntity>)super.func_200600_R(); return (EntityType<? extends SlimeEntity>)super.func_200600_R();
} }
@ -21,7 +21,7 @@
ITextComponent itextcomponent = this.func_200201_e(); ITextComponent itextcomponent = this.func_200201_e();
boolean flag = this.func_175446_cd(); boolean flag = this.func_175446_cd();
float f = (float)i / 4.0F; float f = (float)i / 4.0F;
@@ -202,7 +204,7 @@ @@ -204,7 +206,7 @@
} }
} }
@ -30,7 +30,7 @@
} }
public void func_70108_f(Entity p_70108_1_) { public void func_70108_f(Entity p_70108_1_) {
@@ -323,6 +325,12 @@ @@ -324,6 +326,12 @@
return super.func_213305_a(p_213305_1_).func_220313_a(0.255F * (float)this.func_70809_q()); return super.func_213305_a(p_213305_1_).func_220313_a(0.255F * (float)this.func_70809_q());
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/ZombieEntity.java --- a/net/minecraft/entity/monster/ZombieEntity.java
+++ b/net/minecraft/entity/monster/ZombieEntity.java +++ b/net/minecraft/entity/monster/ZombieEntity.java
@@ -260,12 +260,16 @@ @@ -268,12 +268,16 @@
livingentity = (LivingEntity)p_70097_1_.func_76346_g(); livingentity = (LivingEntity)p_70097_1_.func_76346_g();
} }
@ -19,15 +19,15 @@
for(int l = 0; l < 50; ++l) { for(int l = 0; l < 50; ++l) {
int i1 = i + MathHelper.func_76136_a(this.field_70146_Z, 7, 40) * MathHelper.func_76136_a(this.field_70146_Z, -1, 1); int i1 = i + MathHelper.func_76136_a(this.field_70146_Z, 7, 40) * MathHelper.func_76136_a(this.field_70146_Z, -1, 1);
int j1 = j + MathHelper.func_76136_a(this.field_70146_Z, 7, 40) * MathHelper.func_76136_a(this.field_70146_Z, -1, 1); int j1 = j + MathHelper.func_76136_a(this.field_70146_Z, 7, 40) * MathHelper.func_76136_a(this.field_70146_Z, -1, 1);
@@ -277,6 +281,7 @@ @@ -284,6 +288,7 @@
if (WorldEntitySpawner.func_209382_a(entityspawnplacementregistry$placementtype, this.field_70170_p, blockpos, entitytype) && EntitySpawnPlacementRegistry.func_223515_a(entitytype, serverworld, SpawnReason.REINFORCEMENT, blockpos, this.field_70170_p.field_73012_v)) {
zombieentity.func_70107_b((double)i1, (double)j1, (double)k1); zombieentity.func_70107_b((double)i1, (double)j1, (double)k1);
if (!this.field_70170_p.func_217358_a((double)i1, (double)j1, (double)k1, 7.0D) && this.field_70170_p.func_226668_i_(zombieentity) && this.field_70170_p.func_226669_j_(zombieentity) && !this.field_70170_p.func_72953_d(zombieentity.func_174813_aQ())) { if (!this.field_70170_p.func_217358_a((double)i1, (double)j1, (double)k1, 7.0D) && this.field_70170_p.func_226668_i_(zombieentity) && this.field_70170_p.func_226669_j_(zombieentity) && !this.field_70170_p.func_72953_d(zombieentity.func_174813_aQ())) {
this.field_70170_p.func_217376_c(zombieentity);
+ if (livingentity != null) + if (livingentity != null)
zombieentity.func_70624_b(livingentity); zombieentity.func_70624_b(livingentity);
zombieentity.func_213386_a(this.field_70170_p, this.field_70170_p.func_175649_E(zombieentity.func_233580_cy_()), SpawnReason.REINFORCEMENT, (ILivingEntityData)null, (CompoundNBT)null); zombieentity.func_213386_a(serverworld, this.field_70170_p.func_175649_E(zombieentity.func_233580_cy_()), SpawnReason.REINFORCEMENT, (ILivingEntityData)null, (CompoundNBT)null);
this.func_110148_a(Attributes.field_233829_l_).func_233769_c_(new AttributeModifier("Zombie reinforcement caller charge", (double)-0.05F, AttributeModifier.Operation.ADDITION)); serverworld.func_242417_l(zombieentity);
@@ -463,7 +468,7 @@ @@ -448,7 +453,7 @@
} }
public static boolean func_241399_a_(Random p_241399_0_) { public static boolean func_241399_a_(Random p_241399_0_) {
@ -36,7 +36,7 @@
} }
protected void func_207304_a(float p_207304_1_) { protected void func_207304_a(float p_207304_1_) {
@@ -483,7 +488,7 @@ @@ -468,7 +473,7 @@
} }
protected void func_230291_eT_() { protected void func_230291_eT_() {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/monster/piglin/PiglinEntity.java --- a/net/minecraft/entity/monster/piglin/PiglinEntity.java
+++ b/net/minecraft/entity/monster/piglin/PiglinEntity.java +++ b/net/minecraft/entity/monster/piglin/PiglinEntity.java
@@ -367,7 +367,7 @@ @@ -307,7 +307,7 @@
} }
protected void func_234439_n_(ItemStack p_234439_1_) { protected void func_234439_n_(ItemStack p_234439_1_) {

View File

@ -1,15 +1,15 @@
--- a/net/minecraft/entity/monster/piglin/PiglinTasks.java --- a/net/minecraft/entity/monster/piglin/PiglinTasks.java
+++ b/net/minecraft/entity/monster/piglin/PiglinTasks.java +++ b/net/minecraft/entity/monster/piglin/PiglinTasks.java
@@ -231,7 +231,7 @@ @@ -232,7 +232,7 @@
ItemStack itemstack = p_234477_0_.func_184586_b(Hand.OFF_HAND); ItemStack itemstack = p_234477_0_.func_184586_b(Hand.OFF_HAND);
p_234477_0_.func_184611_a(Hand.OFF_HAND, ItemStack.field_190927_a); p_234477_0_.func_184611_a(Hand.OFF_HAND, ItemStack.field_190927_a);
if (p_234477_0_.func_234421_eJ_()) { if (p_234477_0_.func_242337_eM()) {
- boolean flag = func_234492_b_(itemstack.func_77973_b()); - boolean flag = func_234492_b_(itemstack.func_77973_b());
+ boolean flag = itemstack.isPiglinCurrency(); + boolean flag = itemstack.isPiglinCurrency();
if (p_234477_1_ && flag) { if (p_234477_1_ && flag) {
func_234475_a_(p_234477_0_, func_234524_k_(p_234477_0_)); func_234475_a_(p_234477_0_, func_234524_k_(p_234477_0_));
} else if (!flag) { } else if (!flag) {
@@ -317,7 +317,7 @@ @@ -318,7 +318,7 @@
return false; return false;
} else if (func_234453_C_(p_234474_0_) && p_234474_0_.func_213375_cj().func_218191_a(MemoryModuleType.field_234103_o_)) { } else if (func_234453_C_(p_234474_0_) && p_234474_0_.func_213375_cj().func_218191_a(MemoryModuleType.field_234103_o_)) {
return false; return false;
@ -18,16 +18,16 @@
return func_234455_E_(p_234474_0_); return func_234455_E_(p_234474_0_);
} else { } else {
boolean flag = p_234474_0_.func_234437_l_(p_234474_1_); boolean flag = p_234474_0_.func_234437_l_(p_234474_1_);
@@ -417,7 +417,7 @@ @@ -418,7 +418,7 @@
} }
protected static boolean func_234489_b_(PiglinEntity p_234489_0_, ItemStack p_234489_1_) { protected static boolean func_234489_b_(PiglinEntity p_234489_0_, ItemStack p_234489_1_) {
- return !func_234453_C_(p_234489_0_) && !func_234451_A_(p_234489_0_) && p_234489_0_.func_234421_eJ_() && func_234492_b_(p_234489_1_.func_77973_b()); - return !func_234453_C_(p_234489_0_) && !func_234451_A_(p_234489_0_) && p_234489_0_.func_242337_eM() && func_234492_b_(p_234489_1_.func_77973_b());
+ return !func_234453_C_(p_234489_0_) && !func_234451_A_(p_234489_0_) && p_234489_0_.func_234421_eJ_() && p_234489_1_.isPiglinCurrency(); + return !func_234453_C_(p_234489_0_) && !func_234451_A_(p_234489_0_) && p_234489_0_.func_242337_eM() && p_234489_1_.isPiglinCurrency();
} }
protected static void func_234468_a_(PiglinEntity p_234468_0_, LivingEntity p_234468_1_) { protected static void func_234468_a_(PiglinEntity p_234468_0_, LivingEntity p_234468_1_) {
@@ -518,7 +518,7 @@ @@ -519,7 +519,7 @@
public static boolean func_234460_a_(LivingEntity p_234460_0_) { public static boolean func_234460_a_(LivingEntity p_234460_0_) {
for(ItemStack itemstack : p_234460_0_.func_184193_aE()) { for(ItemStack itemstack : p_234460_0_.func_184193_aE()) {
Item item = itemstack.func_77973_b(); Item item = itemstack.func_77973_b();

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/AnimalEntity.java --- a/net/minecraft/entity/passive/AnimalEntity.java
+++ b/net/minecraft/entity/passive/AnimalEntity.java +++ b/net/minecraft/entity/passive/AnimalEntity.java
@@ -120,7 +120,7 @@ @@ -121,7 +121,7 @@
ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_); ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_);
if (this.func_70877_b(itemstack)) { if (this.func_70877_b(itemstack)) {
int i = this.func_70874_b(); int i = this.func_70874_b();
@ -9,7 +9,7 @@
this.func_175505_a(p_230254_1_, itemstack); this.func_175505_a(p_230254_1_, itemstack);
this.func_146082_f(p_230254_1_); this.func_146082_f(p_230254_1_);
return ActionResultType.SUCCESS; return ActionResultType.SUCCESS;
@@ -147,7 +147,7 @@ @@ -148,7 +148,7 @@
} }
@ -18,21 +18,21 @@
return this.field_70881_d <= 0; return this.field_70881_d <= 0;
} }
@@ -198,6 +198,17 @@ @@ -199,6 +199,17 @@
public void func_234177_a_(World p_234177_1_, AnimalEntity p_234177_2_) { public void func_234177_a_(ServerWorld p_234177_1_, AnimalEntity p_234177_2_) {
AgeableEntity ageableentity = this.func_90011_a(p_234177_2_); AgeableEntity ageableentity = this.func_241840_a(p_234177_1_, p_234177_2_);
+ final net.minecraftforge.event.entity.living.BabyEntitySpawnEvent event = new net.minecraftforge.event.entity.living.BabyEntitySpawnEvent(this, p_234177_2_, ageableentity); + final net.minecraftforge.event.entity.living.BabyEntitySpawnEvent event = new net.minecraftforge.event.entity.living.BabyEntitySpawnEvent(this, p_234177_2_, ageableentity);
+ final boolean cancelled = net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event); + final boolean cancelled = net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event);
+ ageableentity = event.getChild(); + ageableentity = event.getChild();
+ if (cancelled) { + if (cancelled) {
+ //Reset the "inLove" state for the animals + //Reset the "inLove" state for the animals
+ this.func_70873_a(6000); + this.func_70873_a(6000);
+ p_234177_2_.func_70873_a(6000); + p_234177_2_.func_70873_a(6000);
+ this.func_70875_t(); + this.func_70875_t();
+ p_234177_2_.func_70875_t(); + p_234177_2_.func_70875_t();
+ return; + return;
+ } + }
if (ageableentity != null) { if (ageableentity != null) {
ServerPlayerEntity serverplayerentity = this.func_191993_do(); ServerPlayerEntity serverplayerentity = this.func_191993_do();
if (serverplayerentity == null && p_234177_2_.func_191993_do() != null) { if (serverplayerentity == null && p_234177_2_.func_191993_do() != null) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/FoxEntity.java --- a/net/minecraft/entity/passive/FoxEntity.java
+++ b/net/minecraft/entity/passive/FoxEntity.java +++ b/net/minecraft/entity/passive/FoxEntity.java
@@ -760,7 +760,7 @@ @@ -761,7 +761,7 @@
} }
protected void func_220730_m() { protected void func_220730_m() {
@ -9,21 +9,21 @@
BlockState blockstate = FoxEntity.this.field_70170_p.func_180495_p(this.field_179494_b); BlockState blockstate = FoxEntity.this.field_70170_p.func_180495_p(this.field_179494_b);
if (blockstate.func_203425_a(Blocks.field_222434_lW)) { if (blockstate.func_203425_a(Blocks.field_222434_lW)) {
int i = blockstate.func_177229_b(SweetBerryBushBlock.field_220125_a); int i = blockstate.func_177229_b(SweetBerryBushBlock.field_220125_a);
@@ -999,6 +999,17 @@ @@ -1001,6 +1001,17 @@
protected void func_75388_i() { protected void func_75388_i() {
FoxEntity foxentity = (FoxEntity)this.field_75390_d.func_90011_a(this.field_75391_e); ServerWorld serverworld = (ServerWorld)this.field_75394_a;
+ final net.minecraftforge.event.entity.living.BabyEntitySpawnEvent event = new net.minecraftforge.event.entity.living.BabyEntitySpawnEvent(field_75390_d, field_75391_e, foxentity); FoxEntity foxentity = (FoxEntity)this.field_75390_d.func_241840_a(serverworld, this.field_75391_e);
+ final boolean cancelled = net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event); + final net.minecraftforge.event.entity.living.BabyEntitySpawnEvent event = new net.minecraftforge.event.entity.living.BabyEntitySpawnEvent(field_75390_d, field_75391_e, foxentity);
+ foxentity = (FoxEntity) event.getChild(); + final boolean cancelled = net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event);
+ if (cancelled) { + foxentity = (FoxEntity) event.getChild();
+ //Reset the "inLove" state for the animals + if (cancelled) {
+ this.field_75390_d.func_70873_a(6000); + //Reset the "inLove" state for the animals
+ this.field_75391_e.func_70873_a(6000); + this.field_75390_d.func_70873_a(6000);
+ this.field_75390_d.func_70875_t(); + this.field_75391_e.func_70873_a(6000);
+ this.field_75391_e.func_70875_t(); + this.field_75390_d.func_70875_t();
+ return; + this.field_75391_e.func_70875_t();
+ } + return;
+ }
if (foxentity != null) { if (foxentity != null) {
ServerPlayerEntity serverplayerentity = this.field_75390_d.func_191993_do(); ServerPlayerEntity serverplayerentity = this.field_75390_d.func_191993_do();
ServerPlayerEntity serverplayerentity1 = this.field_75391_e.func_191993_do(); ServerPlayerEntity serverplayerentity1 = this.field_75391_e.func_191993_do();

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/OcelotEntity.java --- a/net/minecraft/entity/passive/OcelotEntity.java
+++ b/net/minecraft/entity/passive/OcelotEntity.java +++ b/net/minecraft/entity/passive/OcelotEntity.java
@@ -161,7 +161,7 @@ @@ -163,7 +163,7 @@
if ((this.field_70914_e == null || this.field_70914_e.func_75277_f()) && !this.func_213530_dX() && this.func_70877_b(itemstack) && p_230254_1_.func_70068_e(this) < 9.0D) { if ((this.field_70914_e == null || this.field_70914_e.func_75277_f()) && !this.func_213530_dX() && this.func_70877_b(itemstack) && p_230254_1_.func_70068_e(this) < 9.0D) {
this.func_175505_a(p_230254_1_, itemstack); this.func_175505_a(p_230254_1_, itemstack);
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/ParrotEntity.java --- a/net/minecraft/entity/passive/ParrotEntity.java
+++ b/net/minecraft/entity/passive/ParrotEntity.java +++ b/net/minecraft/entity/passive/ParrotEntity.java
@@ -235,7 +235,7 @@ @@ -237,7 +237,7 @@
} }
if (!this.field_70170_p.field_72995_K) { if (!this.field_70170_p.field_72995_K) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/RabbitEntity.java --- a/net/minecraft/entity/passive/RabbitEntity.java
+++ b/net/minecraft/entity/passive/RabbitEntity.java +++ b/net/minecraft/entity/passive/RabbitEntity.java
@@ -498,7 +498,7 @@ @@ -500,7 +500,7 @@
public boolean func_75250_a() { public boolean func_75250_a() {
if (this.field_179496_a <= 0) { if (this.field_179496_a <= 0) {

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/SheepEntity.java --- a/net/minecraft/entity/passive/SheepEntity.java
+++ b/net/minecraft/entity/passive/SheepEntity.java +++ b/net/minecraft/entity/passive/SheepEntity.java
@@ -60,7 +60,7 @@ @@ -61,7 +61,7 @@
import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.OnlyIn;
@ -9,7 +9,7 @@
private static final DataParameter<Byte> field_184774_bv = EntityDataManager.func_187226_a(SheepEntity.class, DataSerializers.field_187191_a); private static final DataParameter<Byte> field_184774_bv = EntityDataManager.func_187226_a(SheepEntity.class, DataSerializers.field_187191_a);
private static final Map<DyeColor, IItemProvider> field_200206_bz = Util.func_200696_a(Maps.newEnumMap(DyeColor.class), (p_203402_0_) -> { private static final Map<DyeColor, IItemProvider> field_200206_bz = Util.func_200696_a(Maps.newEnumMap(DyeColor.class), (p_203402_0_) -> {
p_203402_0_.put(DyeColor.WHITE, Blocks.field_196556_aL); p_203402_0_.put(DyeColor.WHITE, Blocks.field_196556_aL);
@@ -215,7 +215,7 @@ @@ -216,7 +216,7 @@
public ActionResultType func_230254_b_(PlayerEntity p_230254_1_, Hand p_230254_2_) { public ActionResultType func_230254_b_(PlayerEntity p_230254_1_, Hand p_230254_2_) {
ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_); ItemStack itemstack = p_230254_1_.func_184586_b(p_230254_2_);
@ -18,7 +18,7 @@
if (!this.field_70170_p.field_72995_K && this.func_230262_K__()) { if (!this.field_70170_p.field_72995_K && this.func_230262_K__()) {
this.func_230263_a_(SoundCategory.PLAYERS); this.func_230263_a_(SoundCategory.PLAYERS);
itemstack.func_222118_a(1, p_230254_1_, (p_213613_1_) -> { itemstack.func_222118_a(1, p_230254_1_, (p_213613_1_) -> {
@@ -360,4 +360,26 @@ @@ -361,4 +361,26 @@
protected float func_213348_b(Pose p_213348_1_, EntitySize p_213348_2_) { protected float func_213348_b(Pose p_213348_1_, EntitySize p_213348_2_) {
return 0.95F * p_213348_2_.field_220316_b; return 0.95F * p_213348_2_.field_220316_b;
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/TurtleEntity.java --- a/net/minecraft/entity/passive/TurtleEntity.java
+++ b/net/minecraft/entity/passive/TurtleEntity.java +++ b/net/minecraft/entity/passive/TurtleEntity.java
@@ -233,8 +233,8 @@ @@ -235,8 +235,8 @@
this.func_184185_a(soundevent, 0.15F, 1.0F); this.func_184185_a(soundevent, 0.15F, 1.0F);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/WolfEntity.java --- a/net/minecraft/entity/passive/WolfEntity.java
+++ b/net/minecraft/entity/passive/WolfEntity.java +++ b/net/minecraft/entity/passive/WolfEntity.java
@@ -340,7 +340,7 @@ @@ -347,7 +347,7 @@
itemstack.func_190918_g(1); itemstack.func_190918_g(1);
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/horse/AbstractHorseEntity.java --- a/net/minecraft/entity/passive/horse/AbstractHorseEntity.java
+++ b/net/minecraft/entity/passive/horse/AbstractHorseEntity.java +++ b/net/minecraft/entity/passive/horse/AbstractHorseEntity.java
@@ -275,6 +275,7 @@ @@ -276,6 +276,7 @@
this.field_110296_bG.func_110134_a(this); this.field_110296_bG.func_110134_a(this);
this.func_230275_fc_(); this.func_230275_fc_();
@ -8,7 +8,7 @@
} }
protected void func_230275_fc_() { protected void func_230275_fc_() {
@@ -333,9 +334,9 @@ @@ -334,9 +335,9 @@
protected void func_180429_a(BlockPos p_180429_1_, BlockState p_180429_2_) { protected void func_180429_a(BlockPos p_180429_1_, BlockState p_180429_2_) {
if (!p_180429_2_.func_185904_a().func_76224_d()) { if (!p_180429_2_.func_185904_a().func_76224_d()) {
BlockState blockstate = this.field_70170_p.func_180495_p(p_180429_1_.func_177984_a()); BlockState blockstate = this.field_70170_p.func_180495_p(p_180429_1_.func_177984_a());
@ -20,7 +20,7 @@
} }
if (this.func_184207_aI() && this.field_190688_bE) { if (this.func_184207_aI() && this.field_190688_bE) {
@@ -693,6 +694,7 @@ @@ -694,6 +695,7 @@
this.func_213293_j(vector3d.field_72450_a, d1, vector3d.field_72449_c); this.func_213293_j(vector3d.field_72450_a, d1, vector3d.field_72449_c);
this.func_110255_k(true); this.func_110255_k(true);
this.field_70160_al = true; this.field_70160_al = true;

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/horse/HorseEntity.java --- a/net/minecraft/entity/passive/horse/HorseEntity.java
+++ b/net/minecraft/entity/passive/horse/HorseEntity.java +++ b/net/minecraft/entity/passive/horse/HorseEntity.java
@@ -138,6 +138,8 @@ @@ -139,6 +139,8 @@
this.func_184185_a(SoundEvents.field_187705_cn, p_190680_1_.func_185843_a() * 0.6F, p_190680_1_.func_185847_b()); this.func_184185_a(SoundEvents.field_187705_cn, p_190680_1_.func_185843_a() * 0.6F, p_190680_1_.func_185847_b());
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/entity/passive/horse/LlamaEntity.java --- a/net/minecraft/entity/passive/horse/LlamaEntity.java
+++ b/net/minecraft/entity/passive/horse/LlamaEntity.java +++ b/net/minecraft/entity/passive/horse/LlamaEntity.java
@@ -179,7 +179,7 @@ @@ -181,7 +181,7 @@
i = 90; i = 90;
j = 6; j = 6;
f = 10.0F; f = 10.0F;

View File

@ -15,8 +15,8 @@
+ private final java.util.Collection<IFormattableTextComponent> prefixes = new java.util.LinkedList<>(); + private final java.util.Collection<IFormattableTextComponent> prefixes = new java.util.LinkedList<>();
+ private final java.util.Collection<IFormattableTextComponent> suffixes = new java.util.LinkedList<>(); + private final java.util.Collection<IFormattableTextComponent> suffixes = new java.util.LinkedList<>();
public PlayerEntity(World p_i231577_1_, BlockPos p_i231577_2_, GameProfile p_i231577_3_) { public PlayerEntity(World p_i241920_1_, BlockPos p_i241920_2_, float p_i241920_3_, GameProfile p_i241920_4_) {
super(EntityType.field_200729_aH, p_i231577_1_); super(EntityType.field_200729_aH, p_i241920_1_);
@@ -175,7 +178,7 @@ @@ -175,7 +178,7 @@
} }
@ -178,7 +178,7 @@
this.func_184611_a(p_190775_2_, ItemStack.field_190927_a); this.func_184611_a(p_190775_2_, ItemStack.field_190927_a);
} }
@@ -1007,6 +1032,7 @@ @@ -1011,6 +1036,7 @@
} }
public void func_71059_n(Entity p_71059_1_) { public void func_71059_n(Entity p_71059_1_) {
@ -186,7 +186,7 @@
if (p_71059_1_.func_70075_an()) { if (p_71059_1_.func_70075_an()) {
if (!p_71059_1_.func_85031_j(this)) { if (!p_71059_1_.func_85031_j(this)) {
float f = (float)this.func_233637_b_(Attributes.field_233823_f_); float f = (float)this.func_233637_b_(Attributes.field_233823_f_);
@@ -1034,8 +1060,10 @@ @@ -1038,8 +1064,10 @@
boolean flag2 = flag && this.field_70143_R > 0.0F && !this.field_70122_E && !this.func_70617_f_() && !this.func_70090_H() && !this.func_70644_a(Effects.field_76440_q) && !this.func_184218_aH() && p_71059_1_ instanceof LivingEntity; boolean flag2 = flag && this.field_70143_R > 0.0F && !this.field_70122_E && !this.func_70617_f_() && !this.func_70090_H() && !this.func_70644_a(Effects.field_76440_q) && !this.func_184218_aH() && p_71059_1_ instanceof LivingEntity;
flag2 = flag2 && !this.func_70051_ag(); flag2 = flag2 && !this.func_70051_ag();
@ -198,7 +198,7 @@
} }
f = f + f1; f = f + f1;
@@ -1123,8 +1151,10 @@ @@ -1127,8 +1155,10 @@
} }
if (!this.field_70170_p.field_72995_K && !itemstack1.func_190926_b() && entity instanceof LivingEntity) { if (!this.field_70170_p.field_72995_K && !itemstack1.func_190926_b() && entity instanceof LivingEntity) {
@ -209,7 +209,7 @@
this.func_184611_a(Hand.MAIN_HAND, ItemStack.field_190927_a); this.func_184611_a(Hand.MAIN_HAND, ItemStack.field_190927_a);
} }
} }
@@ -1166,7 +1196,7 @@ @@ -1170,7 +1200,7 @@
} }
if (this.field_70146_Z.nextFloat() < f) { if (this.field_70146_Z.nextFloat() < f) {
@ -218,7 +218,7 @@
this.func_184602_cy(); this.func_184602_cy();
this.field_70170_p.func_72960_a(this, (byte)30); this.field_70170_p.func_72960_a(this, (byte)30);
} }
@@ -1192,8 +1222,9 @@ @@ -1196,8 +1226,9 @@
public void func_71004_bE() { public void func_71004_bE() {
} }
@ -230,7 +230,7 @@
this.field_71069_bz.func_75134_a(this); this.field_71069_bz.func_75134_a(this);
if (this.field_71070_bA != null) { if (this.field_71070_bA != null) {
this.field_71070_bA.func_75134_a(this); this.field_71070_bA.func_75134_a(this);
@@ -1216,6 +1247,7 @@ @@ -1220,6 +1251,7 @@
} }
public void func_225652_a_(boolean p_225652_1_, boolean p_225652_2_) { public void func_225652_a_(boolean p_225652_1_, boolean p_225652_2_) {
@ -238,18 +238,18 @@
super.func_213366_dy(); super.func_213366_dy();
if (this.field_70170_p instanceof ServerWorld && p_225652_2_) { if (this.field_70170_p instanceof ServerWorld && p_225652_2_) {
((ServerWorld)this.field_70170_p).func_72854_c(); ((ServerWorld)this.field_70170_p).func_72854_c();
@@ -1238,8 +1270,8 @@ @@ -1242,8 +1274,8 @@
} }
return optional; return optional;
- } else if (block instanceof BedBlock && BedBlock.func_235330_a_(p_234567_0_)) { - } else if (block instanceof BedBlock && BedBlock.func_235330_a_(p_242374_0_)) {
- return BedBlock.func_220172_a(EntityType.field_200729_aH, p_234567_0_, p_234567_1_, 0); - return BedBlock.func_242652_a(EntityType.field_200729_aH, p_242374_0_, p_242374_1_, p_242374_2_);
+ } else if (blockstate.isBed(p_234567_0_, p_234567_1_, null) && BedBlock.func_235330_a_(p_234567_0_)) { + } else if (blockstate.isBed(p_242374_0_, p_242374_1_, null) && BedBlock.func_235330_a_(p_242374_0_)) {
+ return blockstate.getBedSpawnPosition(EntityType.field_200729_aH, p_234567_0_, p_234567_1_, null); + return blockstate.getBedSpawnPosition(EntityType.field_200729_aH, p_242374_0_, p_242374_1_, p_242374_2_, null);
} else if (!p_234567_2_) { } else if (!p_242374_3_) {
return Optional.empty(); return Optional.empty();
} else { } else {
@@ -1421,6 +1453,7 @@ @@ -1425,6 +1457,7 @@
public boolean func_225503_b_(float p_225503_1_, float p_225503_2_) { public boolean func_225503_b_(float p_225503_1_, float p_225503_2_) {
if (this.field_71075_bZ.field_75101_c) { if (this.field_71075_bZ.field_75101_c) {
@ -257,7 +257,7 @@
return false; return false;
} else { } else {
if (p_225503_1_ >= 2.0F) { if (p_225503_1_ >= 2.0F) {
@@ -1434,7 +1467,7 @@ @@ -1438,7 +1471,7 @@
public boolean func_226566_ei_() { public boolean func_226566_ei_() {
if (!this.field_70122_E && !this.func_184613_cA() && !this.func_70090_H() && !this.func_70644_a(Effects.field_188424_y)) { if (!this.field_70122_E && !this.func_184613_cA() && !this.func_70090_H() && !this.func_70644_a(Effects.field_188424_y)) {
ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST); ItemStack itemstack = this.func_184582_a(EquipmentSlotType.CHEST);
@ -266,7 +266,7 @@
this.func_226567_ej_(); this.func_226567_ej_();
return true; return true;
} }
@@ -1475,6 +1508,10 @@ @@ -1479,6 +1512,10 @@
} }
public void func_195068_e(int p_195068_1_) { public void func_195068_e(int p_195068_1_) {
@ -277,7 +277,7 @@
this.func_85039_t(p_195068_1_); this.func_85039_t(p_195068_1_);
this.field_71106_cc += (float)p_195068_1_ / (float)this.func_71050_bK(); this.field_71106_cc += (float)p_195068_1_ / (float)this.func_71050_bK();
this.field_71067_cb = MathHelper.func_76125_a(this.field_71067_cb + p_195068_1_, 0, Integer.MAX_VALUE); this.field_71067_cb = MathHelper.func_76125_a(this.field_71067_cb + p_195068_1_, 0, Integer.MAX_VALUE);
@@ -1503,7 +1540,7 @@ @@ -1507,7 +1544,7 @@
} }
public void func_192024_a(ItemStack p_192024_1_, int p_192024_2_) { public void func_192024_a(ItemStack p_192024_1_, int p_192024_2_) {
@ -286,7 +286,7 @@
if (this.field_71068_ca < 0) { if (this.field_71068_ca < 0) {
this.field_71068_ca = 0; this.field_71068_ca = 0;
this.field_71106_cc = 0.0F; this.field_71106_cc = 0.0F;
@@ -1514,6 +1551,10 @@ @@ -1518,6 +1555,10 @@
} }
public void func_82242_a(int p_82242_1_) { public void func_82242_a(int p_82242_1_) {
@ -297,7 +297,7 @@
this.field_71068_ca += p_82242_1_; this.field_71068_ca += p_82242_1_;
if (this.field_71068_ca < 0) { if (this.field_71068_ca < 0) {
this.field_71068_ca = 0; this.field_71068_ca = 0;
@@ -1704,7 +1745,11 @@ @@ -1708,7 +1749,11 @@
} }
public ITextComponent func_145748_c_() { public ITextComponent func_145748_c_() {
@ -310,7 +310,7 @@
return this.func_208016_c(iformattabletextcomponent); return this.func_208016_c(iformattabletextcomponent);
} }
@@ -1956,4 +2001,45 @@ @@ -1987,4 +2032,45 @@
return this.field_221260_g; return this.field_221260_g;
} }
} }
@ -323,7 +323,7 @@
+ public Collection<IFormattableTextComponent> getSuffixes() { + public Collection<IFormattableTextComponent> getSuffixes() {
+ return this.suffixes; + return this.suffixes;
+ } + }
+ +
+ private ITextComponent displayname = null; + private ITextComponent displayname = null;
+ /** + /**
+ * Force the displayed name to refresh, by firing {@link net.minecraftforge.event.entity.player.PlayerEvent.NameFormat}, using the real player name as event parameter. + * Force the displayed name to refresh, by firing {@link net.minecraftforge.event.entity.player.PlayerEvent.NameFormat}, using the real player name as event parameter.

Some files were not shown because too many files have changed in this diff Show More