Update to Minecraft 1.16.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-08-12 07:00:00 +10:00
parent 5e5f7f19dc
commit 6a9e00d4b6
208 changed files with 2144 additions and 2455 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/TileEntityChest.java
+++ b/net/minecraft/server/TileEntityChest.java
@@ -2,15 +2,50 @@
@@ -2,6 +2,10 @@
import java.util.Iterator;
import java.util.List;
@@ -11,11 +11,8 @@
public class TileEntityChest extends TileEntityLootable implements ITickable {
private NonNullList<ItemStack> items;
protected float a;
protected float b;
- protected int viewingCount;
+ public int viewingCount; // PAIL protected -> public
@@ -11,6 +15,37 @@
public int viewingCount;
private int j;
+ // CraftBukkit start - add fields and methods
@@ -64,17 +61,8 @@
+ // CraftBukkit end
+
if (this.viewingCount > 0 && this.a == 0.0F) {
this.a(SoundEffects.BLOCK_CHEST_OPEN);
this.playOpenSound(SoundEffects.BLOCK_CHEST_OPEN);
}
@@ -120,7 +162,7 @@
return l;
}
- private void a(SoundEffect soundeffect) {
+ public void a(SoundEffect soundeffect) { // PAIL private -> public, rename playSound
BlockPropertyChestType blockpropertychesttype = (BlockPropertyChestType) this.getBlock().get(BlockChest.c);
if (blockpropertychesttype != BlockPropertyChestType.LEFT) {
@@ -155,8 +197,20 @@
if (this.viewingCount < 0) {
this.viewingCount = 0;