Class BlockStatePropertyLootCondition

java.lang.Object
net.minecraft.loot.condition.BlockStatePropertyLootCondition
All Implemented Interfaces:
Predicate<LootContext>, LootCondition, LootContextAware

public class BlockStatePropertyLootCondition extends Object implements LootCondition
Mappings:
Namespace Name
official dlg
intermediary net/minecraft/class_212
named net/minecraft/loot/condition/BlockStatePropertyLootCondition
  • Field Details

    • block

      final Block block
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a:Lbzo;
      intermediary field_1286 Lnet/minecraft/class_212;field_1286:Lnet/minecraft/class_2248;
      named block Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition;block:Lnet/minecraft/block/Block;
    • properties

      final StatePredicate properties
      Mappings:
      Namespace Name Mixin selector
      official b Ldlg;b:Lcv;
      intermediary field_1288 Lnet/minecraft/class_212;field_1288:Lnet/minecraft/class_4559;
      named properties Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition;properties:Lnet/minecraft/predicate/StatePredicate;
  • Constructor Details

    • BlockStatePropertyLootCondition

      BlockStatePropertyLootCondition(Block block, StatePredicate statePredicate)
  • Method Details

    • getType

      public LootConditionType getType()
      Specified by:
      getType in interface LootCondition
      Mappings:
      Namespace Name Mixin selector
      official a Ldlh;a()Ldli;
      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;
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Specified by:
      getRequiredParameters in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official b Ldiq;b()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
    • test

      public boolean test(LootContext lootContext)
      Specified by:
      test in interface Predicate<LootContext>
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(Ldip;)Z
      intermediary method_899 Lnet/minecraft/class_212;method_899(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
    • builder

      public static BlockStatePropertyLootCondition.Builder builder(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(Lbzo;)Ldlg$a;
      intermediary method_900 Lnet/minecraft/class_212;method_900(Lnet/minecraft/class_2248;)Lnet/minecraft/class_212$class_213;
      named builder Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition;builder(Lnet/minecraft/block/Block;)Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition$Builder;