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 dyk
intermediary net/minecraft/class_212
named net/minecraft/loot/condition/BlockStatePropertyLootCondition
  • Field Details

    • block

      final Block block
      Mappings:
      Namespace Name Mixin selector
      official a Ldyk;a:Lcmt;
      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 Ldyk;b:Lcw;
      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 properties)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldyk;<init>(Lcmt;Lcw;)V
      intermediary <init> Lnet/minecraft/class_212;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4559;)V
      named <init> Lnet/minecraft/loot/condition/BlockStatePropertyLootCondition;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/predicate/StatePredicate;)V
  • Method Details

    • getType

      public LootConditionType getType()
      Specified by:
      getType in interface LootCondition
      Mappings:
      Namespace Name Mixin selector
      official a Ldyl;a()Ldym;
      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 Ldvs;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 Ldyk;a(Ldvr;)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 Ldyk;a(Lcmt;)Ldyk$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;