@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user