Package net.minecraft.predicate.entity
Record Class VariantPredicates.class_8746<V>
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.VariantPredicates.class_8746<V>
- Record Components:
getDeserializer-getter-variant-
- All Implemented Interfaces:
TypeSpecificPredicate
- Enclosing class:
VariantPredicates<V>
public static record VariantPredicates.class_8746<V>(TypeSpecificPredicate.class_8745 getDeserializer, Function<Entity,Optional<V>> getter, V variant)
extends Record
implements TypeSpecificPredicate
- Mappings:
Namespace Name official br$aintermediary net/minecraft/class_7380$class_8746named net/minecraft/predicate/entity/VariantPredicates$class_8746official bintermediary comp_1776named getDeserializerofficial cintermediary comp_1777named getterofficial dintermediary comp_1778named variant
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
TypeSpecificPredicate.class_8745, TypeSpecificPredicate.Deserializers -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeSpecificPredicate.class_8745The field for thegetDeserializerrecord component.The field for thegetterrecord component.private final VThe field for thevariantrecord component.Fields inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
field_45747 -
Constructor Summary
ConstructorsConstructorDescriptionclass_8746(TypeSpecificPredicate.class_8745 class_8745, Function<Entity, Optional<V>> function, V v) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getter()Returns the value of thegetterrecord component.final inthashCode()Returns a hash code value for this object.booleantest(Entity entity, ServerWorld world, @Nullable Vec3d pos) final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
getDeserializer
The field for thegetDeserializerrecord component. -
getter
The field for thegetterrecord component. -
variant
The field for thevariantrecord component.
-
-
Constructor Details
-
class_8746
-
-
Method Details
-
test
- Specified by:
testin interfaceTypeSpecificPredicate- Mappings:
Namespace Name Mixin selector official aLbp;a(Lbii;Lakk;Lehe;)Zintermediary method_22497Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Znamed testLnet/minecraft/predicate/entity/TypeSpecificPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z
-
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). -
getDeserializer
- Specified by:
getDeserializerin interfaceTypeSpecificPredicate- Mappings:
Namespace Name Mixin selector official aLbp;a()Lbp$a;intermediary comp_1776Lnet/minecraft/class_7376;comp_1776()Lnet/minecraft/class_7376$class_8745;named getDeserializerLnet/minecraft/predicate/entity/TypeSpecificPredicate;getDeserializer()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$class_8745;
-
getter
Returns the value of thegetterrecord component.- Returns:
- the value of the
getterrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-