Package net.minecraft.predicate.entity
Record Class SheepPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.SheepPredicate
- Record Components:
sheared
-color
-
- All Implemented Interfaces:
EntitySubPredicate
public record SheepPredicate(Optional<Boolean> sheared, Optional<DyeColor> color)
extends Record
implements EntitySubPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/entity/SheepPredicate
intermediary net/minecraft/class_10168
official dw
named sheared
intermediary comp_3128
official c
named color
intermediary comp_3129
official d
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<SheepPredicate> getCodec()
final int
hashCode()
Returns a hash code value for this object.sheared()
Returns the value of thesheared
record component.boolean
test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) final String
toString()
Returns a string representation of this record class.static SheepPredicate
-
Field Details
-
sheared
The field for thesheared
record component. -
color
The field for thecolor
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/SheepPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_54004
Lnet/minecraft/class_10168;field_54004:Lcom/mojang/serialization/MapCodec;
official b
Ldw;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SheepPredicate
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_58152
Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;
official a
Lbx;a()Lcom/mojang/serialization/MapCodec;
-
test
- Specified by:
test
in interfaceEntitySubPredicate
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/EntitySubPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_22497
Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
official a
Lbx;a(Lbvj;Lash;Lfbx;)Z
-
unsheared
- Mappings:
Namespace Name Mixin selector named unsheared
Lnet/minecraft/predicate/entity/SheepPredicate;unsheared(Lnet/minecraft/util/DyeColor;)Lnet/minecraft/predicate/entity/SheepPredicate;
intermediary method_63498
Lnet/minecraft/class_10168;method_63498(Lnet/minecraft/class_1767;)Lnet/minecraft/class_10168;
official a
Ldw;a(Lcwl;)Ldw;
-
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)
. -
sheared
Returns the value of thesheared
record component.- Returns:
- the value of the
sheared
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-