Package net.minecraft
Record Class class_9471
java.lang.Object
java.lang.Record
net.minecraft.class_9471
- Record Components:
hasRaid-isCaptain-
- All Implemented Interfaces:
EntitySubPredicate
public record class_9471(boolean hasRaid, boolean isCaptain)
extends Record
implements EntitySubPredicate
- Mappings:
Namespace Name named net/minecraft/class_9471intermediary net/minecraft/class_9471official dbnamed hasRaidintermediary comp_2549official dnamed isCaptainintermediary comp_2550official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_9471> static final class_9471private final booleanThe field for thehasRaidrecord component.private final booleanThe field for theisCaptainrecord 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_9471> getCodec()final inthashCode()Returns a hash code value for this object.booleanhasRaid()Returns the value of thehasRaidrecord component.booleanReturns the value of theisCaptainrecord component.booleantest(Entity entity, ServerWorld world, @Nullable Vec3d pos) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hasRaid
private final boolean hasRaidThe field for thehasRaidrecord component. -
isCaptain
private final boolean isCaptainThe field for theisCaptainrecord component. -
field_50162
- Mappings:
Namespace Name Mixin selector named field_50162Lnet/minecraft/class_9471;field_50162:Lcom/mojang/serialization/MapCodec;intermediary field_50162Lnet/minecraft/class_9471;field_50162:Lcom/mojang/serialization/MapCodec;official bLdb;b:Lcom/mojang/serialization/MapCodec;
-
field_50163
- Mappings:
Namespace Name Mixin selector named field_50163Lnet/minecraft/class_9471;field_50163:Lnet/minecraft/class_9471;intermediary field_50163Lnet/minecraft/class_9471;field_50163:Lnet/minecraft/class_9471;official cLdb;c:Ldb;
-
-
Constructor Details
-
class_9471
public class_9471(boolean bool, boolean bool2)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceEntitySubPredicate- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_58152Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;official aLbs;a()Lcom/mojang/serialization/MapCodec;
-
test
- Specified by:
testin interfaceEntitySubPredicate- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntitySubPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Zintermediary method_22497Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Zofficial aLbs;a(Lbru;Laqm;Leuk;)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 '=='. -
hasRaid
public boolean hasRaid()Returns the value of thehasRaidrecord component.- Returns:
- the value of the
hasRaidrecord component
-
isCaptain
public boolean isCaptain()Returns the value of theisCaptainrecord component.- Returns:
- the value of the
isCaptainrecord component
-