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:
EntitySubPredicate
public record FishingHookPredicate(Optional<Boolean> inOpenWater)
extends Record
implements EntitySubPredicate
- Mappings:
Namespace Name official bx
intermediary net/minecraft/class_4965
named net/minecraft/predicate/entity/FishingHookPredicate
official d
intermediary comp_1779
named inOpenWater
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FishingHookPredicate
static final com.mojang.serialization.MapCodec
<FishingHookPredicate> The field for theinOpenWater
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<FishingHookPredicate> getCodec()
final int
hashCode()
Returns a hash code value for this object.Returns the value of theinOpenWater
record component.static FishingHookPredicate
of
(boolean inOpenWater) boolean
test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
inOpenWater
The field for theinOpenWater
record component. -
ALL
- Mappings:
Namespace Name Mixin selector official b
Lbx;b:Lbx;
intermediary field_23137
Lnet/minecraft/class_4965;field_23137:Lnet/minecraft/class_4965;
named ALL
Lnet/minecraft/predicate/entity/FishingHookPredicate;ALL:Lnet/minecraft/predicate/entity/FishingHookPredicate;
-
CODEC
- Mappings:
Namespace Name Mixin selector official c
Lbx;c:Lcom/mojang/serialization/MapCodec;
intermediary field_45750
Lnet/minecraft/class_4965;field_45750:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/predicate/entity/FishingHookPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FishingHookPredicate
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Lbx;a(Z)Lbx;
intermediary method_26095
Lnet/minecraft/class_4965;method_26095(Z)Lnet/minecraft/class_4965;
named of
Lnet/minecraft/predicate/entity/FishingHookPredicate;of(Z)Lnet/minecraft/predicate/entity/FishingHookPredicate;
-
getCodec
- Specified by:
getCodec
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector official a
Lbs;a()Lcom/mojang/serialization/MapCodec;
intermediary method_58152
Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;
named getCodec
Lnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;
-
test
- Specified by:
test
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector official a
Lbs;a(Lbrh;Laqh;Letp;)Z
intermediary method_22497
Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
named test
Lnet/minecraft/predicate/entity/EntitySubPredicate;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 theinOpenWater
record component.- Returns:
- the value of the
inOpenWater
record component
-