Class LocationCheckLootCondition

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

public class LocationCheckLootCondition extends Object implements LootCondition
Mappings:
Namespace Name
official ecf
intermediary net/minecraft/class_205
named net/minecraft/loot/condition/LocationCheckLootCondition
  • Field Details

    • predicate

      final LocationPredicate predicate
      Mappings:
      Namespace Name Mixin selector
      official a Lecf;a:Lch;
      intermediary field_1282 Lnet/minecraft/class_205;field_1282:Lnet/minecraft/class_2090;
      named predicate Lnet/minecraft/loot/condition/LocationCheckLootCondition;predicate:Lnet/minecraft/predicate/entity/LocationPredicate;
    • offset

      final BlockPos offset
      Mappings:
      Namespace Name Mixin selector
      official b Lecf;b:Lgu;
      intermediary field_20765 Lnet/minecraft/class_205;field_20765:Lnet/minecraft/class_2338;
      named offset Lnet/minecraft/loot/condition/LocationCheckLootCondition;offset:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • LocationCheckLootCondition

      LocationCheckLootCondition(LocationPredicate predicate, BlockPos offset)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lecf;<init>(Lch;Lgu;)V
      intermediary <init> Lnet/minecraft/class_205;<init>(Lnet/minecraft/class_2090;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/loot/condition/LocationCheckLootCondition;<init>(Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • getType

      public LootConditionType getType()
      Specified by:
      getType in interface LootCondition
      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;
    • test

      public boolean test(LootContext lootContext)
      Specified by:
      test in interface Predicate<LootContext>
      Mappings:
      Namespace Name Mixin selector
      official a Lecf;a(Ldzh;)Z
      intermediary method_881 Lnet/minecraft/class_205;method_881(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/loot/condition/LocationCheckLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
    • builder

      public static LootCondition.Builder builder(LocationPredicate.Builder predicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Lecf;a(Lch$a;)Lech$a;
      intermediary method_884 Lnet/minecraft/class_205;method_884(Lnet/minecraft/class_2090$class_2091;)Lnet/minecraft/class_5341$class_210;
      named builder Lnet/minecraft/loot/condition/LocationCheckLootCondition;builder(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;)Lnet/minecraft/loot/condition/LootCondition$Builder;
    • builder

      public static LootCondition.Builder builder(LocationPredicate.Builder predicateBuilder, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lecf;a(Lch$a;Lgu;)Lech$a;
      intermediary method_30151 Lnet/minecraft/class_205;method_30151(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2338;)Lnet/minecraft/class_5341$class_210;
      named builder Lnet/minecraft/loot/condition/LocationCheckLootCondition;builder(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/loot/condition/LootCondition$Builder;