Package net.minecraft

Record Class class_9544

java.lang.Object
java.lang.Record
net.minecraft.class_9544
Record Components:
isPotato -
All Implemented Interfaces:
EntitySubPredicate

public record class_9544(boolean isPotato) extends Record implements EntitySubPredicate
Mappings:
Namespace Name
official dc
intermediary net/minecraft/class_9544
named net/minecraft/class_9544
official c
intermediary comp_2577
named isPotato
  • Field Details

    • isPotato

      private final boolean isPotato
      The field for the isPotato record component.
    • field_50735

      public static final com.mojang.serialization.MapCodec<class_9544> field_50735
      Mappings:
      Namespace Name Mixin selector
      official b Ldc;b:Lcom/mojang/serialization/MapCodec;
      intermediary field_50735 Lnet/minecraft/class_9544;field_50735:Lcom/mojang/serialization/MapCodec;
      named field_50735 Lnet/minecraft/class_9544;field_50735:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • class_9544

      public class_9544(boolean bool)
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_9544> getCodec()
      Specified by:
      getCodec in interface EntitySubPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbt;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

      public boolean test(Entity entity, ServerWorld world, @Nullable @Nullable Vec3d pos)
      Specified by:
      test in interface EntitySubPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbt;a(Lbrv;Laqt;Lewu;)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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • isPotato

      public boolean isPotato()
      Returns the value of the isPotato record component.
      Returns:
      the value of the isPotato record component