mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
44 lines
1.7 KiB
Diff
44 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: FireInstall <kettnerl@hu-berlin.de>
|
|
Date: Sat, 20 Jan 2024 16:20:06 +0100
|
|
Subject: [PATCH] Expose LootTable of DecoratedPot
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java b/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java
|
|
@@ -0,0 +0,0 @@ public class CraftDecoratedPot extends CraftBlockEntityState<DecoratedPotBlockEn
|
|
return new CraftInventoryDecoratedPot(this.getTileEntity());
|
|
}
|
|
|
|
+ // Paper start - expose loot table
|
|
+ @Override
|
|
+ public void setLootTable(final org.bukkit.loot.LootTable table) {
|
|
+ this.setLootTable(table, this.getSeed());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLootTable(org.bukkit.loot.LootTable table, long seed) {
|
|
+ this.getSnapshot().setLootTable(org.bukkit.craftbukkit.CraftLootTable.bukkitToMinecraft(table), seed);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public org.bukkit.loot.LootTable getLootTable() {
|
|
+ return org.bukkit.craftbukkit.CraftLootTable.minecraftToBukkit(this.getSnapshot().getLootTable());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setSeed(final long seed) {
|
|
+ this.getSnapshot().setLootTableSeed(seed);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getSeed() {
|
|
+ return this.getSnapshot().getLootTableSeed();
|
|
+ }
|
|
+ // Paper end - expose loot table
|
|
+
|
|
@Override
|
|
public void setSherd(Side face, Material sherd) {
|
|
Preconditions.checkArgument(face != null, "face must not be null");
|