Modifier and Type | Method and Description |
---|---|
static ILootCondition |
ResourceLocationArgument.func_228259_c_(com.mojang.brigadier.context.CommandContext<CommandSource> p_228259_0_,
java.lang.String p_228259_1_) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
ExecuteCommand.func_229767_a_(CommandSource p_229767_0_,
ILootCondition p_229767_1_) |
Modifier and Type | Field and Description |
---|---|
protected ILootCondition[] |
LootEntry.conditions |
protected ILootCondition[] |
LootFunction.conditions |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ILootCondition> |
LootContext.conditions |
private java.util.List<ILootCondition> |
LootPool.conditions |
private java.util.List<ILootCondition> |
LootPool.Builder.conditions |
private java.util.List<ILootCondition> |
LootFunction.Builder.conditions |
private java.util.List<ILootCondition> |
LootEntry.Builder.field_216082_a |
private java.util.function.Function<ResourceLocation,ILootCondition> |
LootContext.field_227499_f_ |
private java.util.Map<ResourceLocation,ILootCondition> |
LootPredicateManager.field_227512_c_ |
private java.util.function.Function<ResourceLocation,ILootCondition> |
ValidationTracker.field_227522_d_ |
Modifier and Type | Method and Description |
---|---|
protected ILootCondition[] |
LootEntry.Builder.func_216079_f() |
ILootCondition |
LootPredicateManager.func_227517_a_(ResourceLocation p_227517_1_) |
ILootCondition |
ValidationTracker.func_227541_d_(ResourceLocation p_227541_1_) |
protected ILootCondition[] |
LootFunction.Builder.getConditions() |
ILootCondition |
LootContext.getLootCondition(ResourceLocation conditionId) |
Modifier and Type | Method and Description |
---|---|
boolean |
LootContext.addCondition(ILootCondition conditionIn) |
StandaloneLootEntry |
StandaloneLootEntry.ILootEntryBuilder.build(int p_build_1_,
int p_build_2_,
ILootCondition[] p_build_3_,
ILootFunction[] p_build_4_) |
T |
ParentedLootEntry.IFactory.create(LootEntry[] p_create_1_,
ILootCondition[] p_create_2_) |
T |
StandaloneLootEntry.Serializer.deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context,
ILootCondition[] conditionsIn) |
abstract T |
LootEntry.Serializer.deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context,
ILootCondition[] conditionsIn) |
T |
ParentedLootEntry.AbstractSerializer.deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context,
ILootCondition[] conditionsIn) |
abstract T |
LootFunction.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
protected abstract T |
StandaloneLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected TagLootEntry |
TagLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected ItemLootEntry |
ItemLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected EmptyLootEntry |
EmptyLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected DynamicLootEntry |
DynamicLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected TableLootEntry |
TableLootEntry.Serializer.func_212829_b_(com.google.gson.JsonObject p_212829_1_,
com.google.gson.JsonDeserializationContext p_212829_2_,
int p_212829_3_,
int p_212829_4_,
ILootCondition[] p_212829_5_,
ILootFunction[] p_212829_6_) |
protected abstract T |
ParentedLootEntry.AbstractSerializer.func_216186_a(com.google.gson.JsonObject p_216186_1_,
com.google.gson.JsonDeserializationContext p_216186_2_,
LootEntry[] p_216186_3_,
ILootCondition[] p_216186_4_) |
void |
LootContext.removeCondition(ILootCondition conditionIn) |
Constructor and Description |
---|
AlternativesLootEntry(LootEntry[] p_i51263_1_,
ILootCondition[] p_i51263_2_) |
DynamicLootEntry(ResourceLocation p_i51260_1_,
int p_i51260_2_,
int p_i51260_3_,
ILootCondition[] p_i51260_4_,
ILootFunction[] p_i51260_5_) |
EmptyLootEntry(int p_i51258_1_,
int p_i51258_2_,
ILootCondition[] p_i51258_3_,
ILootFunction[] p_i51258_4_) |
GroupLootEntry(LootEntry[] p_i51257_1_,
ILootCondition[] p_i51257_2_) |
ItemLootEntry(Item itemIn,
int weightIn,
int qualityIn,
ILootCondition[] conditionsIn,
ILootFunction[] functionsIn) |
LootEntry(ILootCondition[] p_i51254_1_) |
LootFunction(ILootCondition[] conditionsIn) |
LootPool(LootEntry[] p_i51268_1_,
ILootCondition[] p_i51268_2_,
ILootFunction[] p_i51268_3_,
IRandomRange p_i51268_4_,
RandomValueRange p_i51268_5_,
java.lang.String name) |
ParentedLootEntry(LootEntry[] p_i51262_1_,
ILootCondition[] p_i51262_2_) |
SequenceLootEntry(LootEntry[] p_i51250_1_,
ILootCondition[] p_i51250_2_) |
StandaloneLootEntry(int weightIn,
int qualityIn,
ILootCondition[] conditionsIn,
ILootFunction[] functionsIn) |
TableLootEntry(ResourceLocation tableIn,
int weightIn,
int qualityIn,
ILootCondition[] conditionsIn,
ILootFunction[] functionsIn) |
TagLootEntry(Tag<Item> p_i51248_1_,
boolean p_i51248_2_,
int p_i51248_3_,
int p_i51248_4_,
ILootCondition[] p_i51248_5_,
ILootFunction[] p_i51248_6_) |
Constructor and Description |
---|
LootContext(java.util.Random rand,
float luckIn,
ServerWorld worldIn,
java.util.function.Function<ResourceLocation,LootTable> lootTableManagerIn,
java.util.function.Function<ResourceLocation,ILootCondition> p_i225885_5_,
java.util.Map<LootParameter<?>,java.lang.Object> parametersIn,
java.util.Map<ResourceLocation,LootContext.IDynamicDropProvider> conditionsIn) |
ValidationTracker(LootParameterSet p_i225889_1_,
java.util.function.Function<ResourceLocation,ILootCondition> p_i225889_2_,
java.util.function.Function<ResourceLocation,LootTable> p_i225889_3_) |
ValidationTracker(com.google.common.collect.Multimap<java.lang.String,java.lang.String> p_i225888_1_,
java.util.function.Supplier<java.lang.String> p_i225888_2_,
LootParameterSet p_i225888_3_,
java.util.function.Function<ResourceLocation,ILootCondition> p_i225888_4_,
java.util.Set<ResourceLocation> p_i225888_5_,
java.util.function.Function<ResourceLocation,LootTable> p_i225888_6_,
java.util.Set<ResourceLocation> p_i225888_7_) |
Modifier and Type | Class and Description |
---|---|
static class |
ILootCondition.AbstractSerializer<T extends ILootCondition> |
Modifier and Type | Class and Description |
---|---|
class |
Alternative |
class |
BlockStateProperty |
class |
DamageSourceProperties |
class |
EntityHasProperty |
class |
EntityHasScore |
class |
Inverted |
class |
KilledByPlayer |
class |
LocationCheck |
class |
MatchTool |
class |
RandomChance |
class |
RandomChanceWithLooting |
class |
Reference |
class |
SurvivesExplosion |
class |
TableBonus |
class |
TimeCheck |
class |
WeatherCheck |
Modifier and Type | Field and Description |
---|---|
private ILootCondition[] |
Alternative.conditions |
private ILootCondition |
Inverted.term |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends ILootCondition>,ILootCondition.AbstractSerializer<?>> |
LootConditionManager.BY_CLASS |
private java.util.List<ILootCondition> |
Alternative.Builder.conditions |
Modifier and Type | Method and Description |
---|---|
static <T extends ILootCondition> |
LootConditionManager.getSerializerFor(T conditionClass) |
static <T extends ILootCondition> |
LootConditionManager.registerCondition(ILootCondition.AbstractSerializer<? extends T> condition) |
Modifier and Type | Method and Description |
---|---|
ILootCondition |
BlockStateProperty.Builder.build() |
ILootCondition |
ILootCondition.IBuilder.build() |
ILootCondition |
Alternative.Builder.build() |
ILootCondition |
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(ILootCondition p_serialize_1_,
java.lang.reflect.Type p_serialize_2_,
com.google.gson.JsonSerializationContext p_serialize_3_) |
Constructor and Description |
---|
Alternative(ILootCondition[] conditionsIn) |
Inverted(ILootCondition term) |
Modifier and Type | Method and Description |
---|---|
ExplorationMap |
ExplorationMap.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetContents |
SetContents.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
CopyNbt |
CopyNbt.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
ExplosionDecay |
ExplosionDecay.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
LootingEnchantBonus |
LootingEnchantBonus.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetLootTable |
SetLootTable.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
EnchantRandomly |
EnchantRandomly.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
Smelt |
Smelt.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetName |
SetName.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
EnchantWithLevels |
EnchantWithLevels.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
ApplyBonus |
ApplyBonus.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
CopyName |
CopyName.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
FillPlayerHead |
FillPlayerHead.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetAttributes |
SetAttributes.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetNBT |
SetNBT.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
CopyBlockState |
CopyBlockState.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetDamage |
SetDamage.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetStewEffect |
SetStewEffect.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetCount |
SetCount.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
SetLore |
SetLore.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
LimitCount |
LimitCount.Serializer.deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
Constructor and Description |
---|
ApplyBonus(ILootCondition[] conditionsIn,
Enchantment enchantmentIn,
ApplyBonus.IFormula p_i51246_3_) |
CopyBlockState(ILootCondition[] p_i225890_1_,
Block p_i225890_2_,
java.util.Set<IProperty<?>> p_i225890_3_) |
CopyName(ILootCondition[] conditionsIn,
CopyName.Source sourceIn) |
CopyNbt(ILootCondition[] p_i51240_1_,
CopyNbt.Source p_i51240_2_,
java.util.List<CopyNbt.Operation> p_i51240_3_) |
EnchantRandomly(ILootCondition[] p_i51238_1_,
java.util.Collection<Enchantment> p_i51238_2_) |
EnchantWithLevels(ILootCondition[] p_i51236_1_,
IRandomRange p_i51236_2_,
boolean p_i51236_3_) |
ExplorationMap(ILootCondition[] p_i48873_1_,
java.lang.String p_i48873_2_,
MapDecoration.Type p_i48873_3_,
byte p_i48873_4_,
int p_i48873_5_,
boolean p_i48873_6_) |
ExplosionDecay(ILootCondition[] p_i51244_1_) |
FillPlayerHead(ILootCondition[] p_i51234_1_,
LootContext.EntityTarget p_i51234_2_) |
LimitCount(ILootCondition[] p_i51232_1_,
IntClamper p_i51232_2_) |
LootingEnchantBonus(ILootCondition[] conditions,
RandomValueRange countIn,
int limitIn) |
SetAttributes(ILootCondition[] p_i51228_1_,
java.util.List<SetAttributes.Modifier> p_i51228_2_) |
SetContents(ILootCondition[] p_i51226_1_,
java.util.List<LootEntry> p_i51226_2_) |
SetCount(ILootCondition[] p_i51222_1_,
IRandomRange p_i51222_2_) |
SetDamage(ILootCondition[] conditionsIn,
RandomValueRange damageRangeIn) |
SetLootTable(ILootCondition[] p_i51224_1_,
ResourceLocation p_i51224_2_,
long p_i51224_3_) |
SetLore(ILootCondition[] p_i51220_1_,
boolean replace,
java.util.List<ITextComponent> lore,
LootContext.EntityTarget p_i51220_4_) |
SetName(ILootCondition[] p_i51218_1_,
ITextComponent p_i51218_2_,
LootContext.EntityTarget p_i51218_3_) |
SetNBT(ILootCondition[] conditionsIn,
CompoundNBT tagIn) |
SetStewEffect(ILootCondition[] p_i51215_1_,
java.util.Map<Effect,RandomValueRange> p_i51215_2_) |
Smelt(ILootCondition[] conditionsIn) |
Modifier and Type | Field and Description |
---|---|
protected ILootCondition[] |
LootModifier.conditions |
Modifier and Type | Method and Description |
---|---|
abstract T |
GlobalLootModifierSerializer.read(ResourceLocation location,
com.google.gson.JsonObject object,
ILootCondition[] ailootcondition)
Most mods will likely not need more than
return new MyModifier(conditionsIn) but any additional properties that are needed will need to be deserialized here. |
Constructor and Description |
---|
LootModifier(ILootCondition[] conditionsIn)
Constructs a LootModifier.
|
Modifier and Type | Method and Description |
---|---|
GlobalLootModifiersTest.SmeltingEnchantmentModifier |
GlobalLootModifiersTest.SmeltingEnchantmentModifier.Serializer.read(ResourceLocation name,
com.google.gson.JsonObject json,
ILootCondition[] conditionsIn) |
GlobalLootModifiersTest.SilkTouchTestModifier |
GlobalLootModifiersTest.SilkTouchTestModifier.Serializer.read(ResourceLocation name,
com.google.gson.JsonObject json,
ILootCondition[] conditionsIn) |
GlobalLootModifiersTest.WheatSeedsConverterModifier |
GlobalLootModifiersTest.WheatSeedsConverterModifier.Serializer.read(ResourceLocation name,
com.google.gson.JsonObject object,
ILootCondition[] conditionsIn) |
Constructor and Description |
---|
SilkTouchTestModifier(ILootCondition[] conditionsIn) |
SmeltingEnchantmentModifier(ILootCondition[] conditionsIn) |
WheatSeedsConverterModifier(ILootCondition[] conditionsIn,
int numSeeds,
Item itemCheck,
Item reward) |