Package | Description |
---|---|
net.minecraft.world.storage.loot | |
net.minecraft.world.storage.loot.conditions | |
net.minecraft.world.storage.loot.functions | |
net.minecraftforge.common |
Modifier and Type | Field and Description |
---|---|
protected LootCondition[] |
LootEntry.conditions |
Modifier and Type | Field and Description |
---|---|
private java.util.List<LootCondition> |
LootPool.poolConditions |
Modifier and Type | Method and Description |
---|---|
static LootEntryItem |
LootEntryItem.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
int weightIn,
int qualityIn,
LootCondition[] conditionsIn) |
static LootEntryEmpty |
LootEntryEmpty.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
int weightIn,
int qualityIn,
LootCondition[] conditionsIn) |
static LootEntryTable |
LootEntryTable.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
int weightIn,
int qualityIn,
LootCondition[] conditionsIn) |
Constructor and Description |
---|
LootEntry(int weightIn,
int qualityIn,
LootCondition[] conditionsIn,
java.lang.String entryName) |
LootEntryEmpty(int weightIn,
int qualityIn,
LootCondition[] conditionsIn,
java.lang.String entryName) |
LootEntryItem(Item itemIn,
int weightIn,
int qualityIn,
LootFunction[] functionsIn,
LootCondition[] conditionsIn,
java.lang.String entryName) |
LootEntryTable(ResourceLocation tableIn,
int weightIn,
int qualityIn,
LootCondition[] conditionsIn,
java.lang.String entryName) |
LootPool(LootEntry[] lootEntriesIn,
LootCondition[] poolConditionsIn,
RandomValueRange rollsIn,
RandomValueRange bonusRollsIn,
java.lang.String name) |
Modifier and Type | Class and Description |
---|---|
static class |
LootCondition.Serializer<T extends LootCondition> |
Modifier and Type | Class and Description |
---|---|
class |
EntityHasProperty |
class |
EntityHasScore |
class |
KilledByPlayer |
class |
RandomChance |
class |
RandomChanceWithLooting |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends LootCondition>,LootCondition.Serializer<?>> |
LootConditionManager.CLASS_TO_SERIALIZER_MAP |
Modifier and Type | Method and Description |
---|---|
static <T extends LootCondition> |
LootConditionManager.getSerializerFor(T conditionClass) |
static <T extends LootCondition> |
LootConditionManager.registerCondition(LootCondition.Serializer<? extends T> condition) |
Modifier and Type | Method and Description |
---|---|
LootCondition |
LootConditionManager.Serializer.deserialize(com.google.gson.JsonElement p_deserialize_1_,
java.lang.reflect.Type p_deserialize_2_,
com.google.gson.JsonDeserializationContext p_deserialize_3_) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
LootConditionManager.Serializer.serialize(LootCondition p_serialize_1_,
java.lang.reflect.Type p_serialize_2_,
com.google.gson.JsonSerializationContext p_serialize_3_) |
static boolean |
LootConditionManager.testAllConditions(LootCondition[] conditions,
java.util.Random rand,
LootContext context) |
Modifier and Type | Method and Description |
---|---|
static boolean |
LootConditionManager.testAllConditions(java.lang.Iterable<LootCondition> conditions,
java.util.Random rand,
LootContext context) |
Modifier and Type | Field and Description |
---|---|
private LootCondition[] |
LootFunction.conditions |
Modifier and Type | Method and Description |
---|---|
LootCondition[] |
LootFunction.getConditions() |
Modifier and Type | Method and Description |
---|---|
LootingEnchantBonus |
LootingEnchantBonus.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
EnchantWithLevels |
EnchantWithLevels.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
SetNBT |
SetNBT.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
SetCount |
SetCount.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
SetAttributes |
SetAttributes.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
EnchantRandomly |
EnchantRandomly.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
Smelt |
Smelt.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
abstract T |
LootFunction.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
SetDamage |
SetDamage.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
SetMetadata |
SetMetadata.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
Constructor and Description |
---|
EnchantRandomly(LootCondition[] conditionsIn,
java.util.List<Enchantment> enchantmentsIn) |
EnchantWithLevels(LootCondition[] conditionsIn,
RandomValueRange randomRange,
boolean isTreasureIn) |
LootFunction(LootCondition[] conditionsIn) |
LootingEnchantBonus(LootCondition[] conditions,
RandomValueRange countIn,
int limitIn) |
SetAttributes(LootCondition[] conditionsIn,
SetAttributes.Modifier[] modifiersIn) |
SetCount(LootCondition[] conditionsIn,
RandomValueRange countRangeIn) |
SetDamage(LootCondition[] conditionsIn,
RandomValueRange damageRangeIn) |
SetMetadata(LootCondition[] conditionsIn,
RandomValueRange metaRangeIn) |
SetNBT(LootCondition[] conditionsIn,
NBTTagCompound tagIn) |
Smelt(LootCondition[] conditionsIn) |
Modifier and Type | Method and Description |
---|---|
static LootEntry |
ForgeHooks.deserializeJsonLootEntry(java.lang.String type,
com.google.gson.JsonObject json,
int weight,
int quality,
LootCondition[] conditions) |