mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
11 lines
669 B
Diff
11 lines
669 B
Diff
--- a/net/minecraft/server/LootContextParameters.java
|
|
+++ b/net/minecraft/server/LootContextParameters.java
|
|
@@ -12,6 +12,7 @@
|
|
public static final LootContextParameter<TileEntity> BLOCK_ENTITY = a("block_entity");
|
|
public static final LootContextParameter<ItemStack> TOOL = a("tool");
|
|
public static final LootContextParameter<Float> EXPLOSION_RADIUS = a("explosion_radius");
|
|
+ public static final LootContextParameter<Integer> LOOTING_MOD = new LootContextParameter<>(new MinecraftKey("bukkit:looting_mod")); // CraftBukkit
|
|
|
|
private static <T> LootContextParameter<T> a(String s) {
|
|
return new LootContextParameter<>(new MinecraftKey(s));
|