mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 02:31:43 +01:00
Refactor get/setChestPlate to Chestplate. Addresses BUKKIT-3189
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
a885a5f0ee
commit
0fcaa1ab6b
@ -108,11 +108,11 @@ public class CraftEntityEquipment implements EntityEquipment {
|
|||||||
setDropChance(HELMET_SLOT, chance);
|
setDropChance(HELMET_SLOT, chance);
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getChestPlateDropChance() {
|
public float getChestplateDropChance() {
|
||||||
return getDropChance(CHEST_SLOT);
|
return getDropChance(CHEST_SLOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChestPlateDropChance(float chance) {
|
public void setChestplateDropChance(float chance) {
|
||||||
setDropChance(CHEST_SLOT, chance);
|
setDropChance(CHEST_SLOT, chance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,11 +138,11 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getChestPlateDropChance() {
|
public float getChestplateDropChance() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChestPlateDropChance(float chance) {
|
public void setChestplateDropChance(float chance) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user