Package net.minecraft.predicate
Record Class StatePredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.StatePredicate
- Record Components:
conditions-
- Mappings:
Namespace Name named net/minecraft/predicate/StatePredicateintermediary net/minecraft/class_4559official ebnamed conditionsintermediary comp_1830official c
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final recordprivate static final recordprivate static final recordprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StatePredicate> private static final com.mojang.serialization.Codec<List<StatePredicate.Condition>> private final List<StatePredicate.Condition> The field for theconditionsrecord component.static final PacketCodec<ByteBuf, StatePredicate> -
Constructor Summary
ConstructorsConstructorDescriptionStatePredicate(List<StatePredicate.Condition> conditions) Creates an instance of aStatePredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.findMissing(StateManager<?, ?> stateManager) final inthashCode()Returns a hash code value for this object.booleantest(BlockState state) booleantest(FluidState state) <S extends State<?,S>>
booleantest(StateManager<?, S> stateManager, S container) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
conditions
The field for theconditionsrecord component. -
CONDITION_LIST_CODEC
private static final com.mojang.serialization.Codec<List<StatePredicate.Condition>> CONDITION_LIST_CODEC- Mappings:
Namespace Name Mixin selector named CONDITION_LIST_CODECLnet/minecraft/predicate/StatePredicate;CONDITION_LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_45778Lnet/minecraft/class_4559;field_45778:Lcom/mojang/serialization/Codec;official dLeb;d:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/StatePredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45777Lnet/minecraft/class_4559;field_45777:Lcom/mojang/serialization/Codec;official aLeb;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/predicate/StatePredicate;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49396Lnet/minecraft/class_4559;field_49396:Lnet/minecraft/class_9139;official bLeb;b:Lyx;
-
-
Constructor Details
-
StatePredicate
Creates an instance of aStatePredicaterecord class.- Parameters:
conditions- the value for theconditionsrecord component
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/state/StateManager;Lnet/minecraft/state/State;)Zintermediary method_22515Lnet/minecraft/class_4559;method_22515(Lnet/minecraft/class_2689;Lnet/minecraft/class_2688;)Zofficial aLeb;a(Ldtd;Ldte;)Z
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/block/BlockState;)Zintermediary method_22514Lnet/minecraft/class_4559;method_22514(Lnet/minecraft/class_2680;)Zofficial aLeb;a(Ldtc;)Z
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/fluid/FluidState;)Zintermediary method_22518Lnet/minecraft/class_4559;method_22518(Lnet/minecraft/class_3610;)Zofficial aLeb;a(Lepe;)Z
-
findMissing
- Mappings:
Namespace Name Mixin selector named findMissingLnet/minecraft/predicate/StatePredicate;findMissing(Lnet/minecraft/state/StateManager;)Ljava/util/Optional;intermediary method_53235Lnet/minecraft/class_4559;method_53235(Lnet/minecraft/class_2689;)Ljava/util/Optional;official aLeb;a(Ldtd;)Ljava/util/Optional;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-