Update to Minecraft 1.19

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2022-06-08 02:00:00 +10:00
parent 91d9aa9a89
commit 25f3b50f6b
332 changed files with 3628 additions and 2559 deletions

View File

@@ -13,7 +13,7 @@
public class BlockComposter extends Block implements IInventoryHolder {
public static final int READY = 8;
@@ -224,18 +230,25 @@
@@ -227,18 +233,25 @@
return EnumInteractionResult.sidedSuccess(world.isClientSide);
} else if (i == 8) {
@@ -42,7 +42,7 @@
itemstack.shrink(1);
return iblockdata1;
@@ -244,7 +257,15 @@
@@ -247,7 +260,15 @@
}
}
@@ -59,7 +59,7 @@
if (!world.isClientSide) {
float f = 0.7F;
double d0 = (double) (world.random.nextFloat() * 0.7F) + 0.15000000596046448D;
@@ -270,10 +291,16 @@
@@ -273,10 +294,16 @@
}
static IBlockData addItem(IBlockData iblockdata, GeneratorAccess generatoraccess, BlockPosition blockposition, ItemStack itemstack) {
@@ -77,7 +77,7 @@
return iblockdata;
} else {
int j = i + 1;
@@ -321,7 +348,8 @@
@@ -324,7 +351,8 @@
public IWorldInventory getContainer(IBlockData iblockdata, GeneratorAccess generatoraccess, BlockPosition blockposition) {
int i = (Integer) iblockdata.getValue(BlockComposter.LEVEL);
@@ -87,7 +87,7 @@
}
public static class ContainerOutput extends InventorySubcontainer implements IWorldInventory {
@@ -336,6 +364,7 @@
@@ -339,6 +367,7 @@
this.state = iblockdata;
this.level = generatoraccess;
this.pos = blockposition;
@@ -95,7 +95,7 @@
}
@Override
@@ -360,8 +389,15 @@
@@ -363,8 +392,15 @@
@Override
public void setChanged() {
@@ -113,7 +113,7 @@
}
}
@@ -374,6 +410,7 @@
@@ -377,6 +413,7 @@
public ContainerInput(IBlockData iblockdata, GeneratorAccess generatoraccess, BlockPosition blockposition) {
super(1);
@@ -121,7 +121,7 @@
this.state = iblockdata;
this.level = generatoraccess;
this.pos = blockposition;
@@ -416,8 +453,9 @@
@@ -419,8 +456,9 @@
public static class ContainerEmpty extends InventorySubcontainer implements IWorldInventory {