public class LootEntryItem extends LootEntry
LootEntry.Serializer
Modifier and Type | Field and Description |
---|---|
protected LootFunction[] |
functions |
protected Item |
item |
conditions, entryName, quality, weight
Constructor and Description |
---|
LootEntryItem(Item itemIn,
int weightIn,
int qualityIn,
LootFunction[] functionsIn,
LootCondition[] conditionsIn,
java.lang.String entryName) |
Modifier and Type | Method and Description |
---|---|
void |
addLoot(java.util.Collection<ItemStack> stacks,
java.util.Random rand,
LootContext context) |
static LootEntryItem |
deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
int weightIn,
int qualityIn,
LootCondition[] conditionsIn) |
protected void |
serialize(com.google.gson.JsonObject json,
com.google.gson.JsonSerializationContext context) |
getEffectiveWeight, getEntryName
protected final Item item
protected final LootFunction[] functions
public LootEntryItem(Item itemIn, int weightIn, int qualityIn, LootFunction[] functionsIn, LootCondition[] conditionsIn, java.lang.String entryName)
public void addLoot(java.util.Collection<ItemStack> stacks, java.util.Random rand, LootContext context)
protected void serialize(com.google.gson.JsonObject json, com.google.gson.JsonSerializationContext context)
public static LootEntryItem deserialize(com.google.gson.JsonObject object, com.google.gson.JsonDeserializationContext deserializationContext, int weightIn, int qualityIn, LootCondition[] conditionsIn)