Package net.minecraft.predicate
Class BlockPredicate
java.lang.Object
net.minecraft.predicate.BlockPredicate
public class BlockPredicate extends Object
- Mappings:
Namespace Name official an
intermediary net/minecraft/class_4550
named net/minecraft/predicate/BlockPredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static BlockPredicate
ANY
private Block
block
private NbtPredicate
nbt
private StatePredicate
state
private Tag<Block>
tag
-
Constructor Summary
Constructors Constructor Description BlockPredicate(Tag<Block> tag, Block block, StatePredicate state, NbtPredicate nbt)
-
Method Summary
Modifier and Type Method Description static BlockPredicate
fromJson(JsonElement json)
boolean
test(ServerWorld world, BlockPos pos)
JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lan;a:Lan;
intermediary field_20692
Lnet/minecraft/class_4550;field_20692:Lnet/minecraft/class_4550;
named ANY
Lnet/minecraft/predicate/BlockPredicate;ANY:Lnet/minecraft/predicate/BlockPredicate;
-
tag
- Mappings:
Namespace Name Mixin selector official b
Lan;b:Lafc;
intermediary field_20693
Lnet/minecraft/class_4550;field_20693:Lnet/minecraft/class_3494;
named tag
Lnet/minecraft/predicate/BlockPredicate;tag:Lnet/minecraft/tag/Tag;
-
block
- Mappings:
Namespace Name Mixin selector official c
Lan;c:Lbwu;
intermediary field_20694
Lnet/minecraft/class_4550;field_20694:Lnet/minecraft/class_2248;
named block
Lnet/minecraft/predicate/BlockPredicate;block:Lnet/minecraft/block/Block;
-
state
- Mappings:
Namespace Name Mixin selector official d
Lan;d:Lcm;
intermediary field_20695
Lnet/minecraft/class_4550;field_20695:Lnet/minecraft/class_4559;
named state
Lnet/minecraft/predicate/BlockPredicate;state:Lnet/minecraft/predicate/StatePredicate;
-
nbt
- Mappings:
Namespace Name Mixin selector official e
Lan;e:Lcb;
intermediary field_20696
Lnet/minecraft/class_4550;field_20696:Lnet/minecraft/class_2105;
named nbt
Lnet/minecraft/predicate/BlockPredicate;nbt:Lnet/minecraft/predicate/NbtPredicate;
-
-
Constructor Details
-
BlockPredicate
public BlockPredicate(@Nullable Tag<Block> tag, @Nullable Block block, StatePredicate state, NbtPredicate nbt)- Mappings:
Namespace Name Mixin selector official <init>
Lan;<init>(Lafc;Lbwu;Lcm;Lcb;)V
intermediary <init>
Lnet/minecraft/class_4550;<init>(Lnet/minecraft/class_3494;Lnet/minecraft/class_2248;Lnet/minecraft/class_4559;Lnet/minecraft/class_2105;)V
named <init>
Lnet/minecraft/predicate/BlockPredicate;<init>(Lnet/minecraft/tag/Tag;Lnet/minecraft/block/Block;Lnet/minecraft/predicate/StatePredicate;Lnet/minecraft/predicate/NbtPredicate;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lan;a(Laav;Lfx;)Z
intermediary method_22454
Lnet/minecraft/class_4550;method_22454(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
named test
Lnet/minecraft/predicate/BlockPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lan;a(Lcom/google/gson/JsonElement;)Lan;
intermediary method_22453
Lnet/minecraft/class_4550;method_22453(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4550;
named fromJson
Lnet/minecraft/predicate/BlockPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/BlockPredicate;
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lan;a()Lcom/google/gson/JsonElement;
intermediary method_22452
Lnet/minecraft/class_4550;method_22452()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/BlockPredicate;toJson()Lcom/google/gson/JsonElement;
-