mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Update to Minecraft 1.12-pre2
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
--- a/net/minecraft/server/BlockShulkerBox.java
|
||||
+++ b/net/minecraft/server/BlockShulkerBox.java
|
||||
@@ -3,7 +3,7 @@
|
||||
public class BlockShulkerBox extends BlockTileEntity {
|
||||
@@ -92,7 +92,32 @@
|
||||
|
||||
public static final BlockStateEnum<EnumDirection> a = BlockStateDirection.of("facing");
|
||||
- private final EnumColor b;
|
||||
+ public final EnumColor b; // PAIL: public, rename
|
||||
|
||||
public BlockShulkerBox(EnumColor enumcolor) {
|
||||
super(Material.STONE, MaterialMapColor.b);
|
||||
@@ -89,7 +89,32 @@
|
||||
tileentityshulkerbox.d(entityhuman);
|
||||
}
|
||||
|
||||
- public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {}
|
||||
@@ -30,7 +21,7 @@
|
||||
+ itemstack.setTag(nbttagcompound);
|
||||
+ if (tileentityshulkerbox.hasCustomName()) {
|
||||
+ itemstack.g(tileentityshulkerbox.getName());
|
||||
+ tileentityshulkerbox.a("");
|
||||
+ tileentityshulkerbox.setCustomName("");
|
||||
+ }
|
||||
+
|
||||
+ a(world, blockposition, itemstack);
|
||||
@@ -43,7 +34,7 @@
|
||||
|
||||
public void postPlace(World world, BlockPosition blockposition, IBlockData iblockdata, EntityLiving entityliving, ItemStack itemstack) {
|
||||
if (itemstack.hasName()) {
|
||||
@@ -105,7 +130,7 @@
|
||||
@@ -108,7 +133,7 @@
|
||||
public void remove(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
||||
TileEntity tileentity = world.getTileEntity(blockposition);
|
||||
|
||||
@@ -52,7 +43,7 @@
|
||||
TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox) tileentity;
|
||||
|
||||
if (!tileentityshulkerbox.r() && tileentityshulkerbox.F()) {
|
||||
@@ -123,8 +148,8 @@
|
||||
@@ -126,8 +151,8 @@
|
||||
a(world, blockposition, itemstack);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user