|
338 | 338 | } |
339 | 339 | catch (Throwable throwable) |
340 | 340 | { |
341 | | -@@ -475,48 +565,97 @@ |
| 341 | +@@ -475,48 +565,91 @@ |
342 | 342 |
|
343 | 343 | private void func_184849_a(IScoreCriteria p_184849_1_, int p_184849_2_) |
344 | 344 | { |
|
428 | 428 |
|
429 | 429 | if (!this.field_70170_p.func_82736_K().func_82766_b("keepInventory") && !this.func_175149_v()) |
430 | 430 | { |
431 | | -+ captureDrops = true; |
432 | | -+ capturedDrops.clear(); |
433 | | - this.func_190776_cN(); |
434 | | - this.field_71071_by.func_70436_m(); |
435 | | -+ |
436 | | -+ captureDrops = false; |
| 431 | +- this.func_190776_cN(); |
| 432 | +- this.field_71071_by.func_70436_m(); |
437 | 433 | + net.minecraftforge.event.entity.player.PlayerDropsEvent event = new net.minecraftforge.event.entity.player.PlayerDropsEvent(this, p_70645_1_, capturedDrops, field_70718_bc > 0); |
438 | 434 | + if (!net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) |
439 | 435 | + { |
|
457 | 453 | score.func_96648_a(); |
458 | 454 | } |
459 | 455 |
|
460 | | -@@ -541,30 +680,34 @@ |
| 456 | +@@ -541,30 +674,34 @@ |
461 | 457 | this.func_110142_aN().func_94549_h(); |
462 | 458 | } |
463 | 459 |
|
|
499 | 495 | } |
500 | 496 |
|
501 | 497 | CriteriaTriggers.field_192122_b.func_192211_a(this, p_191956_1_, p_191956_3_); |
502 | | -@@ -602,10 +745,46 @@ |
| 498 | +@@ -602,10 +739,46 @@ |
503 | 499 | } |
504 | 500 | } |
505 | 501 |
|
|
550 | 546 | public boolean func_70097_a(DamageSource p_70097_1_, float p_70097_2_) |
551 | 547 | { |
552 | 548 | if (this.func_180431_b(p_70097_1_)) |
553 | | -@@ -647,7 +826,6 @@ |
| 549 | +@@ -647,7 +820,6 @@ |
554 | 550 | } |
555 | 551 | } |
556 | 552 |
|
557 | 553 | - @Override |
558 | 554 | public boolean func_96122_a(EntityPlayer p_96122_1_) |
559 | 555 | { |
560 | 556 | return !this.func_175400_cq() ? false : super.func_96122_a(p_96122_1_); |
561 | | -@@ -655,14 +833,17 @@ |
| 557 | +@@ -655,14 +827,17 @@ |
562 | 558 |
|
563 | 559 | private boolean func_175400_cq() |
564 | 560 | { |
|
580 | 576 |
|
581 | 577 | if (this.field_71093_bK == 0 && p_184204_1_ == -1) |
582 | 578 | { |
583 | | -@@ -673,8 +854,9 @@ |
| 579 | +@@ -673,8 +848,9 @@ |
584 | 580 | this.field_193110_cw = null; |
585 | 581 | } |
586 | 582 |
|
|
591 | 587 | this.field_70170_p.func_72900_e(this); |
592 | 588 |
|
593 | 589 | if (!this.field_71136_j) |
594 | | -@@ -693,7 +875,11 @@ |
| 590 | +@@ -693,7 +869,11 @@ |
595 | 591 | p_184204_1_ = 1; |
596 | 592 | } |
597 | 593 |
|
|
604 | 600 | this.field_71135_a.func_147359_a(new SPacketEffect(1032, BlockPos.field_177992_a, 0, false)); |
605 | 601 | this.field_71144_ck = -1; |
606 | 602 | this.field_71149_ch = -1.0F; |
607 | | -@@ -702,7 +888,6 @@ |
| 603 | +@@ -702,7 +882,6 @@ |
608 | 604 | } |
609 | 605 | } |
610 | 606 |
|
611 | 607 | - @Override |
612 | 608 | public boolean func_174827_a(EntityPlayerMP p_174827_1_) |
613 | 609 | { |
614 | 610 | if (p_174827_1_.func_175149_v()) |
615 | | -@@ -728,14 +913,12 @@ |
| 611 | +@@ -728,14 +907,12 @@ |
616 | 612 | } |
617 | 613 | } |
618 | 614 |
|
|
627 | 623 | public EntityPlayer.SleepResult func_180469_a(BlockPos p_180469_1_) |
628 | 624 | { |
629 | 625 | EntityPlayer.SleepResult entityplayer$sleepresult = super.func_180469_a(p_180469_1_); |
630 | | -@@ -753,9 +936,9 @@ |
| 626 | +@@ -753,9 +930,9 @@ |
631 | 627 | return entityplayer$sleepresult; |
632 | 628 | } |
633 | 629 |
|
|
638 | 634 | if (this.func_70608_bn()) |
639 | 635 | { |
640 | 636 | this.func_71121_q().func_73039_n().func_151248_b(this, new SPacketAnimation(this, 2)); |
641 | | -@@ -769,7 +952,6 @@ |
| 637 | +@@ -769,7 +946,6 @@ |
642 | 638 | } |
643 | 639 | } |
644 | 640 |
|
645 | 641 | - @Override |
646 | 642 | public boolean func_184205_a(Entity p_184205_1_, boolean p_184205_2_) |
647 | 643 | { |
648 | 644 | Entity entity = this.func_184187_bx(); |
649 | | -@@ -791,7 +973,6 @@ |
| 645 | +@@ -791,7 +967,6 @@ |
650 | 646 | } |
651 | 647 | } |
652 | 648 |
|
653 | 649 | - @Override |
654 | 650 | public void func_184210_p() |
655 | 651 | { |
656 | 652 | Entity entity = this.func_184187_bx(); |
657 | | -@@ -804,18 +985,15 @@ |
| 653 | +@@ -804,18 +979,15 @@ |
658 | 654 | } |
659 | 655 | } |
660 | 656 |
|
|
673 | 669 | protected void func_184594_b(BlockPos p_184594_1_) |
674 | 670 | { |
675 | 671 | if (!this.func_175149_v()) |
676 | | -@@ -827,12 +1005,12 @@ |
| 672 | +@@ -827,12 +999,12 @@ |
677 | 673 | public void func_71122_b(double p_71122_1_, boolean p_71122_3_) |
678 | 674 | { |
679 | 675 | int i = MathHelper.func_76128_c(this.field_70165_t); |
|
688 | 684 | { |
689 | 685 | BlockPos blockpos1 = blockpos.func_177977_b(); |
690 | 686 | IBlockState iblockstate1 = this.field_70170_p.func_180495_p(blockpos1); |
691 | | -@@ -848,41 +1026,75 @@ |
| 687 | +@@ -848,41 +1020,75 @@ |
692 | 688 | super.func_184231_a(p_71122_1_, p_71122_3_, iblockstate, blockpos); |
693 | 689 | } |
694 | 690 |
|
|
771 | 767 | } |
772 | 768 | else |
773 | 769 | { |
774 | | -@@ -897,14 +1109,9 @@ |
| 770 | +@@ -897,14 +1103,9 @@ |
775 | 771 |
|
776 | 772 | if (ilockablecontainer.func_174893_q_() && !this.func_175146_a(ilockablecontainer.func_174891_i()) && !this.func_175149_v()) |
777 | 773 | { |
|
789 | 785 | return; |
790 | 786 | } |
791 | 787 | } |
792 | | -@@ -913,33 +1120,37 @@ |
| 788 | +@@ -913,33 +1114,37 @@ |
793 | 789 |
|
794 | 790 | if (p_71007_1_ instanceof IInteractionObject) |
795 | 791 | { |
|
839 | 835 | IInventory iinventory = ((ContainerMerchant)this.field_71070_bA).func_75174_d(); |
840 | 836 | ITextComponent itextcomponent = p_180472_1_.func_145748_c_(); |
841 | 837 | this.field_71135_a.func_147359_a(new SPacketOpenWindow(this.field_71139_cq, "minecraft:villager", itextcomponent, iinventory.func_70302_i_())); |
842 | | -@@ -954,25 +1165,28 @@ |
| 838 | +@@ -954,25 +1159,28 @@ |
843 | 839 | } |
844 | 840 | } |
845 | 841 |
|
|
875 | 871 | public void func_184814_a(ItemStack p_184814_1_, EnumHand p_184814_2_) |
876 | 872 | { |
877 | 873 | Item item = p_184814_1_.func_77973_b(); |
878 | | -@@ -985,14 +1199,12 @@ |
| 874 | +@@ -985,14 +1193,12 @@ |
879 | 875 | } |
880 | 876 | } |
881 | 877 |
|
|
890 | 886 | public void func_71111_a(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) |
891 | 887 | { |
892 | 888 | if (!(p_71111_1_.func_75139_a(p_71111_2_) instanceof SlotCrafting)) |
893 | | -@@ -1014,20 +1226,23 @@ |
| 889 | +@@ -1014,20 +1220,23 @@ |
894 | 890 | this.func_71110_a(p_71120_1_, p_71120_1_.func_75138_a()); |
895 | 891 | } |
896 | 892 |
|
|
917 | 913 | public void func_175173_a(Container p_175173_1_, IInventory p_175173_2_) |
918 | 914 | { |
919 | 915 | for (int i = 0; i < p_175173_2_.func_174890_g(); ++i) |
920 | | -@@ -1036,9 +1251,9 @@ |
| 916 | +@@ -1036,9 +1245,9 @@ |
921 | 917 | } |
922 | 918 | } |
923 | 919 |
|
|
928 | 924 | this.field_71135_a.func_147359_a(new SPacketCloseWindow(this.field_71070_bA.field_75152_c)); |
929 | 925 | this.func_71128_l(); |
930 | 926 | } |
931 | | -@@ -1054,6 +1269,7 @@ |
| 927 | +@@ -1054,6 +1263,7 @@ |
932 | 928 | public void func_71128_l() |
933 | 929 | { |
934 | 930 | this.field_71070_bA.func_75134_a(this); |
935 | 931 | + net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.player.PlayerContainerEvent.Close(this, this.field_71070_bA)); |
936 | 932 | this.field_71070_bA = this.field_71069_bz; |
937 | 933 | } |
938 | 934 |
|
939 | | -@@ -1076,7 +1292,6 @@ |
| 935 | +@@ -1076,7 +1286,6 @@ |
940 | 936 | } |
941 | 937 | } |
942 | 938 |
|
943 | 939 | - @Override |
944 | 940 | public void func_71064_a(StatBase p_71064_1_, int p_71064_2_) |
945 | 941 | { |
946 | 942 | if (p_71064_1_ != null) |
947 | | -@@ -1090,7 +1305,6 @@ |
| 943 | +@@ -1090,7 +1299,6 @@ |
948 | 944 | } |
949 | 945 | } |
950 | 946 |
|
951 | 947 | - @Override |
952 | 948 | public void func_175145_a(StatBase p_175145_1_) |
953 | 949 | { |
954 | 950 | if (p_175145_1_ != null) |
955 | | -@@ -1104,26 +1318,27 @@ |
| 951 | +@@ -1104,26 +1312,27 @@ |
956 | 952 | } |
957 | 953 | } |
958 | 954 |
|
|
984 | 980 | public void func_192022_b(List<IRecipe> p_192022_1_) |
985 | 981 | { |
986 | 982 | this.field_192041_cq.func_193834_b(p_192022_1_, this); |
987 | | -@@ -1148,15 +1363,21 @@ |
| 983 | +@@ -1148,15 +1357,21 @@ |
988 | 984 | public void func_71118_n() |
989 | 985 | { |
990 | 986 | this.field_71149_ch = -1.0E8F; |
|
1010 | 1006 | protected void func_71036_o() |
1011 | 1007 | { |
1012 | 1008 | if (!this.field_184627_bm.func_190926_b() && this.func_184587_cr()) |
1013 | | -@@ -1196,15 +1417,31 @@ |
| 1009 | +@@ -1196,15 +1411,31 @@ |
1014 | 1010 | this.field_71144_ck = -1; |
1015 | 1011 | this.field_71149_ch = -1.0F; |
1016 | 1012 | this.field_71146_ci = -1; |
|
1044 | 1040 | protected void func_70670_a(PotionEffect p_70670_1_) |
1045 | 1041 | { |
1046 | 1042 | super.func_70670_a(p_70670_1_); |
1047 | | -@@ -1219,7 +1456,6 @@ |
| 1043 | +@@ -1219,7 +1450,6 @@ |
1048 | 1044 | CriteriaTriggers.field_193139_z.func_193153_a(this); |
1049 | 1045 | } |
1050 | 1046 |
|
1051 | 1047 | - @Override |
1052 | 1048 | protected void func_70695_b(PotionEffect p_70695_1_, boolean p_70695_2_) |
1053 | 1049 | { |
1054 | 1050 | super.func_70695_b(p_70695_1_, p_70695_2_); |
1055 | | -@@ -1227,7 +1463,6 @@ |
| 1051 | +@@ -1227,7 +1457,6 @@ |
1056 | 1052 | CriteriaTriggers.field_193139_z.func_193153_a(this); |
1057 | 1053 | } |
1058 | 1054 |
|
1059 | 1055 | - @Override |
1060 | 1056 | protected void func_70688_c(PotionEffect p_70688_1_) |
1061 | 1057 | { |
1062 | 1058 | super.func_70688_c(p_70688_1_); |
1063 | | -@@ -1241,25 +1476,21 @@ |
| 1059 | +@@ -1241,25 +1470,21 @@ |
1064 | 1060 | CriteriaTriggers.field_193139_z.func_193153_a(this); |
1065 | 1061 | } |
1066 | 1062 |
|
|
1086 | 1082 | public void func_71016_p() |
1087 | 1083 | { |
1088 | 1084 | if (this.field_71135_a != null) |
1089 | | -@@ -1274,9 +1505,17 @@ |
| 1085 | +@@ -1274,9 +1499,17 @@ |
1090 | 1086 | return (WorldServer)this.field_70170_p; |
1091 | 1087 | } |
1092 | 1088 |
|
|
1105 | 1101 | this.field_71134_c.func_73076_a(p_71033_1_); |
1106 | 1102 | this.field_71135_a.func_147359_a(new SPacketChangeGameState(3, (float)p_71033_1_.func_77148_a())); |
1107 | 1103 |
|
1108 | | -@@ -1294,44 +1533,41 @@ |
| 1104 | +@@ -1294,44 +1527,41 @@ |
1109 | 1105 | this.func_175136_bO(); |
1110 | 1106 | } |
1111 | 1107 |
|
|
1157 | 1153 | } |
1158 | 1154 | } |
1159 | 1155 | else |
1160 | | -@@ -1343,22 +1579,40 @@ |
| 1156 | +@@ -1343,22 +1573,40 @@ |
1161 | 1157 | { |
1162 | 1158 | return true; |
1163 | 1159 | } |
|
1201 | 1197 | } |
1202 | 1198 |
|
1203 | 1199 | public EntityPlayer.EnumChatVisibility func_147096_v() |
1204 | | -@@ -1371,10 +1625,9 @@ |
| 1200 | +@@ -1371,10 +1619,9 @@ |
1205 | 1201 | this.field_71135_a.func_147359_a(new SPacketResourcePackSend(p_175397_1_, p_175397_2_)); |
1206 | 1202 | } |
1207 | 1203 |
|
|
1213 | 1209 | } |
1214 | 1210 |
|
1215 | 1211 | public void func_143004_u() |
1216 | | -@@ -1396,11 +1649,11 @@ |
| 1212 | +@@ -1396,11 +1643,11 @@ |
1217 | 1213 | { |
1218 | 1214 | if (p_152339_1_ instanceof EntityPlayer) |
1219 | 1215 | { |
|
1227 | 1223 | } |
1228 | 1224 | } |
1229 | 1225 |
|
1230 | | -@@ -1409,7 +1662,6 @@ |
| 1226 | +@@ -1409,7 +1656,6 @@ |
1231 | 1227 | this.field_71130_g.remove(Integer.valueOf(p_184848_1_.func_145782_y())); |
1232 | 1228 | } |
1233 | 1229 |
|
1234 | 1230 | - @Override |
1235 | 1231 | protected void func_175135_B() |
1236 | 1232 | { |
1237 | 1233 | if (this.func_175149_v()) |
1238 | | -@@ -1438,11 +1690,10 @@ |
| 1234 | +@@ -1438,11 +1684,10 @@ |
1239 | 1235 | if (entity != this.field_175401_bS) |
1240 | 1236 | { |
1241 | 1237 | this.field_71135_a.func_147359_a(new SPacketCamera(this.field_175401_bS)); |
|
1248 | 1244 | protected void func_184173_H() |
1249 | 1245 | { |
1250 | 1246 | if (this.field_71088_bW > 0 && !this.field_184851_cj) |
1251 | | -@@ -1451,7 +1702,6 @@ |
| 1247 | +@@ -1451,7 +1696,6 @@ |
1252 | 1248 | } |
1253 | 1249 | } |
1254 | 1250 |
|
1255 | 1251 | - @Override |
1256 | 1252 | public void func_71059_n(Entity p_71059_1_) |
1257 | 1253 | { |
1258 | 1254 | if (this.field_71134_c.func_73081_b() == GameType.SPECTATOR) |
1259 | | -@@ -1472,10 +1722,10 @@ |
| 1255 | +@@ -1472,10 +1716,10 @@ |
1260 | 1256 | @Nullable |
1261 | 1257 | public ITextComponent func_175396_E() |
1262 | 1258 | { |
|
1269 | 1265 | public void func_184609_a(EnumHand p_184609_1_) |
1270 | 1266 | { |
1271 | 1267 | super.func_184609_a(p_184609_1_); |
1272 | | -@@ -1494,13 +1744,16 @@ |
| 1268 | +@@ -1494,13 +1738,16 @@ |
1273 | 1269 |
|
1274 | 1270 | public void func_184847_M() |
1275 | 1271 | { |
|
1289 | 1285 | } |
1290 | 1286 |
|
1291 | 1287 | public PlayerAdvancements func_192039_O() |
1292 | | -@@ -1512,5 +1765,145 @@ |
| 1288 | +@@ -1512,5 +1759,145 @@ |
1293 | 1289 | public Vec3d func_193106_Q() |
1294 | 1290 | { |
1295 | 1291 | return this.field_193110_cw; |
|
0 commit comments