Package net.minecraft.predicate.entity
Record Class FishingHookPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.FishingHookPredicate
- Record Components:
inOpenWater-
- All Implemented Interfaces:
TypeSpecificPredicate
public record FishingHookPredicate(Optional<Boolean> inOpenWater)
extends Record
implements TypeSpecificPredicate
- Mappings:
Namespace Name official buintermediary net/minecraft/class_4965named net/minecraft/predicate/entity/FishingHookPredicateofficial dintermediary comp_1779named inOpenWater
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
TypeSpecificPredicate.Deserializers, TypeSpecificPredicate.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FishingHookPredicatestatic final com.mojang.serialization.MapCodec<FishingHookPredicate>The field for theinOpenWaterrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinOpenWaterrecord component.static FishingHookPredicateof(boolean inOpenWater) booleantest(Entity entity, ServerWorld world, @Nullable Vec3d pos) final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
inOpenWater
The field for theinOpenWaterrecord component. -
ALL
- Mappings:
Namespace Name Mixin selector official bLbu;b:Lbu;intermediary field_23137Lnet/minecraft/class_4965;field_23137:Lnet/minecraft/class_4965;named ALLLnet/minecraft/predicate/entity/FishingHookPredicate;ALL:Lnet/minecraft/predicate/entity/FishingHookPredicate;
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLbu;c:Lcom/mojang/serialization/MapCodec;intermediary field_45750Lnet/minecraft/class_4965;field_45750:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/predicate/entity/FishingHookPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FishingHookPredicate
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLbu;a(Z)Lbu;intermediary method_26095Lnet/minecraft/class_4965;method_26095(Z)Lnet/minecraft/class_4965;named ofLnet/minecraft/predicate/entity/FishingHookPredicate;of(Z)Lnet/minecraft/predicate/entity/FishingHookPredicate;
-
type
- Specified by:
typein interfaceTypeSpecificPredicate- Mappings:
Namespace Name Mixin selector official aLbq;a()Lbq$a;intermediary comp_1776Lnet/minecraft/class_7376;comp_1776()Lnet/minecraft/class_7376$class_8745;named typeLnet/minecraft/predicate/entity/TypeSpecificPredicate;type()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Type;
-
test
- Specified by:
testin interfaceTypeSpecificPredicate- Mappings:
Namespace Name Mixin selector official aLbq;a(Lblv;Land;Lelt;)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). -
inOpenWater
Returns the value of theinOpenWaterrecord component.- Returns:
- the value of the
inOpenWaterrecord component
-