Interface LootCondition

All Superinterfaces:
LootContextAware, Predicate<LootContext>
All Known Implementing Classes:
AllOfLootCondition, AlternativeLootCondition, AnyOfLootCondition, BlockStatePropertyLootCondition, DamageSourcePropertiesLootCondition, EntityPropertiesLootCondition, EntityScoresLootCondition, InvertedLootCondition, KilledByPlayerLootCondition, LocationCheckLootCondition, 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
named net/minecraft/loot/condition/LootCondition
intermediary net/minecraft/class_5341
official ett
  • Method Details

    • 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 Lett;b()Letu;