Refactor get/setChestPlate to Chestplate. Addresses BUKKIT-3189

This commit is contained in:
feildmaster 2012-12-18 03:40:39 -06:00
parent 6cec8ba5cb
commit a2d551fafa
2 changed files with 4 additions and 4 deletions

View File

@ -108,11 +108,11 @@ public class CraftEntityEquipment implements EntityEquipment {
setDropChance(HELMET_SLOT, chance);
}
public float getChestPlateDropChance() {
public float getChestplateDropChance() {
return getDropChance(CHEST_SLOT);
}
public void setChestPlateDropChance(float chance) {
public void setChestplateDropChance(float chance) {
setDropChance(CHEST_SLOT, chance);
}

View File

@ -138,11 +138,11 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
throw new UnsupportedOperationException();
}
public float getChestPlateDropChance() {
public float getChestplateDropChance() {
return 1;
}
public void setChestPlateDropChance(float chance) {
public void setChestplateDropChance(float chance) {
throw new UnsupportedOperationException();
}