public abstract class LootEntry
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
LootEntry.Serializer  | 
| Modifier and Type | Field and Description | 
|---|---|
protected LootCondition[] | 
conditions  | 
protected java.lang.String | 
entryName  | 
protected int | 
quality  | 
protected int | 
weight  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
LootEntry(int weightIn,
         int qualityIn,
         LootCondition[] conditionsIn,
         java.lang.String entryName)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
addLoot(java.util.Collection<ItemStack> stacks,
       java.util.Random rand,
       LootContext context)  | 
int | 
getEffectiveWeight(float luck)  | 
java.lang.String | 
getEntryName()  | 
protected abstract void | 
serialize(JsonObject json,
         JsonSerializationContext context)  | 
protected final java.lang.String entryName
protected final int weight
protected final int quality
protected final LootCondition[] conditions
protected LootEntry(int weightIn,
                    int qualityIn,
                    LootCondition[] conditionsIn,
                    java.lang.String entryName)
public int getEffectiveWeight(float luck)
public java.lang.String getEntryName()
public abstract void addLoot(java.util.Collection<ItemStack> stacks, java.util.Random rand, LootContext context)
protected abstract void serialize(JsonObject json,
                                  JsonSerializationContext context)