Package net.minecraft.predicate
Record Class StatePredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.StatePredicate
- Record Components:
conditions
-
- Mappings:
Namespace Name official cz
intermediary net/minecraft/class_4559
named net/minecraft/predicate/StatePredicate
official b
intermediary comp_1830
named conditions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static final record
private static final record
private static final record
private static interface
-
Field Summary
Modifier 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 theconditions
record component. -
Constructor Summary
ConstructorDescriptionStatePredicate
(List<StatePredicate.Condition> conditions) Creates an instance of aStatePredicate
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditions
record component.final boolean
Indicates whether some other object is "equal to" this one.findMissing
(StateManager<?, ?> stateManager) final int
hashCode()
Returns a hash code value for this object.boolean
test
(BlockState state) boolean
test
(FluidState state) <S extends State<?,
S>>
booleantest
(StateManager<?, S> stateManager, S container) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
conditions
The field for theconditions
record component. -
CONDITION_LIST_CODEC
private static final com.mojang.serialization.Codec<List<StatePredicate.Condition>> CONDITION_LIST_CODEC- Mappings:
Namespace Name Mixin selector official c
Lcz;c:Lcom/mojang/serialization/Codec;
intermediary field_45778
Lnet/minecraft/class_4559;field_45778:Lcom/mojang/serialization/Codec;
named CONDITION_LIST_CODEC
Lnet/minecraft/predicate/StatePredicate;CONDITION_LIST_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcz;a:Lcom/mojang/serialization/Codec;
intermediary field_45777
Lnet/minecraft/class_4559;field_45777:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/predicate/StatePredicate;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StatePredicate
Creates an instance of aStatePredicate
record class.- Parameters:
conditions
- the value for theconditions
record component
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Ldji;Ldjj;)Z
intermediary method_22515
Lnet/minecraft/class_4559;method_22515(Lnet/minecraft/class_2689;Lnet/minecraft/class_2688;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/state/StateManager;Lnet/minecraft/state/State;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Ldjh;)Z
intermediary method_22514
Lnet/minecraft/class_4559;method_22514(Lnet/minecraft/class_2680;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/block/BlockState;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Leer;)Z
intermediary method_22518
Lnet/minecraft/class_4559;method_22518(Lnet/minecraft/class_3610;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/fluid/FluidState;)Z
-
findMissing
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Ldji;)Ljava/util/Optional;
intermediary method_53235
Lnet/minecraft/class_4559;method_53235(Lnet/minecraft/class_2689;)Ljava/util/Optional;
named findMissing
Lnet/minecraft/predicate/StatePredicate;findMissing(Lnet/minecraft/state/StateManager;)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 theconditions
record component.- Returns:
- the value of the
conditions
record component
-