Package net.minecraft
Record Class class_9544
java.lang.Object
java.lang.Record
net.minecraft.class_9544
- Record Components:
isPotato-
- All Implemented Interfaces:
EntitySubPredicate
- Mappings:
Namespace Name official dcintermediary net/minecraft/class_9544named net/minecraft/class_9544official cintermediary comp_2577named isPotato
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_9544> private final booleanThe field for theisPotatorecord component.Fields inherited from interface net.minecraft.predicate.entity.EntitySubPredicate
CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<class_9544> getCodec()final inthashCode()Returns a hash code value for this object.booleanisPotato()Returns the value of theisPotatorecord component.booleantest(Entity entity, ServerWorld world, @Nullable Vec3d pos) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
isPotato
private final boolean isPotatoThe field for theisPotatorecord component. -
field_50735
- Mappings:
Namespace Name Mixin selector official bLdc;b:Lcom/mojang/serialization/MapCodec;intermediary field_50735Lnet/minecraft/class_9544;field_50735:Lcom/mojang/serialization/MapCodec;named field_50735Lnet/minecraft/class_9544;field_50735:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9544
public class_9544(boolean bool)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceEntitySubPredicate- Mappings:
Namespace Name Mixin selector official aLbt;a()Lcom/mojang/serialization/MapCodec;intermediary method_58152Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;named getCodecLnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;
-
test
- Specified by:
testin interfaceEntitySubPredicate- Mappings:
Namespace Name Mixin selector official aLbt;a(Lbrv;Laqt;Lewu;)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/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 with '=='. -
isPotato
public boolean isPotato()Returns the value of theisPotatorecord component.- Returns:
- the value of the
isPotatorecord component
-