3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Clarify exception thrown when setting drop chance for player inventory

Dieser Commit ist enthalten in:
md_5 2019-01-13 14:10:45 +11:00
Ursprung 98b862ad88
Commit 07e504c37f

Datei anzeigen

@ -206,7 +206,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
@Override @Override
public void setItemInMainHandDropChance(float chance) { public void setItemInMainHandDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
@Override @Override
@ -216,7 +216,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
@Override @Override
public void setItemInOffHandDropChance(float chance) { public void setItemInOffHandDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
public float getHelmetDropChance() { public float getHelmetDropChance() {
@ -224,7 +224,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
} }
public void setHelmetDropChance(float chance) { public void setHelmetDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
public float getChestplateDropChance() { public float getChestplateDropChance() {
@ -232,7 +232,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
} }
public void setChestplateDropChance(float chance) { public void setChestplateDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
public float getLeggingsDropChance() { public float getLeggingsDropChance() {
@ -240,7 +240,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
} }
public void setLeggingsDropChance(float chance) { public void setLeggingsDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
public float getBootsDropChance() { public float getBootsDropChance() {
@ -248,6 +248,6 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
} }
public void setBootsDropChance(float chance) { public void setBootsDropChance(float chance) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Cannot set drop chance for PlayerInventory");
} }
} }