Class ItemUsedOnBlockCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ItemUsedOnBlockCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- ItemUsedOnBlockCriterion
public static class ItemUsedOnBlockCriterion.Conditions extends AbstractCriterionConditions
- Mappings:
Namespace Name official br$a
intermediary net/minecraft/class_4711$class_4712
named net/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
private LocationPredicate
location
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, LocationPredicate location, ItemPredicate item)
-
Method Summary
Modifier and Type Method Description static ItemUsedOnBlockCriterion.Conditions
create(LocationPredicate.Builder location, ItemPredicate.Builder item)
boolean
test(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
location
- Mappings:
Namespace Name Mixin selector official a
Lbr$a;a:Lbw;
intermediary field_24495
Lnet/minecraft/class_4711$class_4712;field_24495:Lnet/minecraft/class_2090;
named location
Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;location:Lnet/minecraft/predicate/entity/LocationPredicate;
-
item
- Mappings:
Namespace Name Mixin selector official b
Lbr$a;b:Lbq;
intermediary field_21579
Lnet/minecraft/class_4711$class_4712;field_21579:Lnet/minecraft/class_2073;
named item
Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
-
-
Constructor Details
-
Conditions
- Mappings:
Namespace Name Mixin selector official <init>
Lbr$a;<init>(Lbg$b;Lbw;Lbq;)V
intermediary <init>
Lnet/minecraft/class_4711$class_4712;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2090;Lnet/minecraft/class_2073;)V
named <init>
Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/predicate/item/ItemPredicate;)V
-
-
Method Details
-
create
public static ItemUsedOnBlockCriterion.Conditions create(LocationPredicate.Builder location, ItemPredicate.Builder item)- Mappings:
Namespace Name Mixin selector official a
Lbr$a;a(Lbw$a;Lbq$a;)Lbr$a;
intermediary method_27981
Lnet/minecraft/class_4711$class_4712;method_27981(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_4711$class_4712;
named create
Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;create(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbr$a;a(Lcht;Laav;Lfx;Lbnv;)Z
intermediary method_23892
Lnet/minecraft/class_4711$class_4712;method_23892(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Z
named test
Lnet/minecraft/advancement/criterion/ItemUsedOnBlockCriterion$Conditions;test(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lag;a(Lci;)Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;
-