Interface LootCondition

All Superinterfaces:
LootContextAware, Predicate<LootContext>
All Known Implementing Classes:
AllOfLootCondition, AlternativeLootCondition, AnyOfLootCondition, BlockStatePropertyLootCondition, DamageSourcePropertiesLootCondition, EntityPropertiesLootCondition, EntityScoresLootCondition, InvertedLootCondition, KilledByPlayerLootCondition, LocationCheckLootCondition, LootManager.AndCondition, MatchToolLootCondition, RandomChanceLootCondition, RandomChanceWithLootingLootCondition, ReferenceLootCondition, SurvivesExplosionLootCondition, TableBonusLootCondition, TimeCheckLootCondition, ValueCheckLootCondition, WeatherCheckLootCondition

public interface LootCondition extends LootContextAware, Predicate<LootContext>
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
official ech
intermediary net/minecraft/class_5341
named net/minecraft/loot/condition/LootCondition
  • Method Details

    • getType

      Mappings:
      Namespace Name Mixin selector
      official b Lech;b()Leci;
      intermediary method_29325 Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;
      named getType Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;