Bug fix and changes

This commit is contained in:
ShadowRanger
2015-06-23 13:31:26 +10:00
parent bc40e91215
commit 902def1dd7
19 changed files with 512 additions and 185 deletions

View File

@@ -28,7 +28,7 @@ import net.minecraft.server.v1_8_R3.*;
import org.bukkit.craftbukkit.v1_8_R3.entity.*;
public class AnySilentChest {
public boolean IsAnyChestNeeded(Player p, int x, int y, int z) {
public boolean isAnyChestNeeded(Player p, int x, int y, int z) {
// FOR REFERENCE, LOOK AT net.minecraft.server.BlockChest
BlockPosition position = new BlockPosition(x, y, z);
EntityPlayer player = ((CraftPlayer) p).getHandle();
@@ -81,7 +81,7 @@ public class AnySilentChest {
return true;
}
public boolean ActivateChest(Player p, boolean anychest, boolean silentchest, int x, int y, int z) {
public boolean activateChest(Player p, boolean anyChest, boolean silentChest, int x, int y, int z) {
BlockPosition position = new BlockPosition(x, y, z);
EntityPlayer player = ((CraftPlayer) p).getHandle();
World world = player.world;
@@ -98,7 +98,7 @@ public class AnySilentChest {
}
ITileInventory tileInventory = (ITileInventory) tileEntity;
if (!anychest && this.topBlocking(world, position)) {
if (!anyChest && this.topBlocking(world, position)) {
return true;
}
@@ -106,7 +106,7 @@ public class AnySilentChest {
BlockPosition side = position.shift(direction);
Block block = world.getType(side).getBlock();
if (block == chest) {
if (!anychest && this.topBlocking(world, side)) {
if (!anyChest && this.topBlocking(world, side)) {
return true;
}
@@ -122,7 +122,7 @@ public class AnySilentChest {
}
boolean returnValue = true;
if (silentchest) {
if (silentChest) {
tileInventory = new SilentInventory(tileInventory);
if (OpenInv.notifySilentChest()) {
p.sendMessage("You are opening a chest silently.");
@@ -132,7 +132,7 @@ public class AnySilentChest {
player.openContainer(tileInventory);
if (anychest && OpenInv.notifyAnyChest()) {
if (anyChest && OpenInv.notifyAnyChest()) {
p.sendMessage("You are opening a blocked chest.");
}