Package net.minecraft.loot.condition
Interface LootCondition
- All Superinterfaces:
LootContextAware
,Predicate<LootContext>
- All Known Implementing Classes:
AllOfLootCondition
,AlternativeLootCondition
,AnyOfLootCondition
,BlockStatePropertyLootCondition
,DamageSourcePropertiesLootCondition
,EnchantmentActiveCheckLootCondition
,EntityPropertiesLootCondition
,EntityScoresLootCondition
,InvertedLootCondition
,KilledByPlayerLootCondition
,LocationCheckLootCondition
,MatchToolLootCondition
,RandomChanceLootCondition
,RandomChanceWithEnchantedBonusLootCondition
,ReferenceLootCondition
,SurvivesExplosionLootCondition
,TableBonusLootCondition
,TimeCheckLootCondition
,ValueCheckLootCondition
,WeatherCheckLootCondition
Loot conditions, officially predicates, are JSON-based conditions to test
against in world. It's used in loot tables, advancements, and commands, and can be
defined by data packs.
- Mappings:
Namespace Name named net/minecraft/loot/condition/LootCondition
intermediary net/minecraft/class_5341
official euw
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LootCondition> static final com.mojang.serialization.Codec
<LootCondition> static final com.mojang.serialization.Codec
<RegistryEntry<LootCondition>> -
Method Summary
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters, validate
-
Field Details
-
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODEC
Lnet/minecraft/loot/condition/LootCondition;BASE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51808
Lnet/minecraft/class_5341;field_51808:Lcom/mojang/serialization/Codec;
official d
Leuw;d:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/condition/LootCondition;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51809
Lnet/minecraft/class_5341;field_51809:Lcom/mojang/serialization/Codec;
official e
Leuw;e:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/loot/condition/LootCondition;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51810
Lnet/minecraft/class_5341;field_51810:Lcom/mojang/serialization/Codec;
official f
Leuw;f:Lcom/mojang/serialization/Codec;
-
-
Method Details
-
getType
LootConditionType getType()- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;
intermediary method_29325
Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;
official b
Leuw;b()Leux;
-