Package net.minecraft.predicate.entity
Record Class RaiderPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.RaiderPredicate
- Record Components:
hasRaid
-isCaptain
-
- All Implemented Interfaces:
EntitySubPredicate
public record RaiderPredicate(boolean hasRaid, boolean isCaptain)
extends Record
implements EntitySubPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/entity/RaiderPredicate
intermediary net/minecraft/class_9471
official dr
named hasRaid
intermediary comp_2549
official d
named isCaptain
intermediary comp_2550
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RaiderPredicate
static final com.mojang.serialization.MapCodec
<RaiderPredicate> private final boolean
The field for thehasRaid
record component.private final boolean
The field for theisCaptain
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<RaiderPredicate> getCodec()
final int
hashCode()
Returns a hash code value for this object.boolean
hasRaid()
Returns the value of thehasRaid
record component.boolean
Returns the value of theisCaptain
record component.boolean
test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hasRaid
private final boolean hasRaidThe field for thehasRaid
record component. -
isCaptain
private final boolean isCaptainThe field for theisCaptain
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/RaiderPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_50162
Lnet/minecraft/class_9471;field_50162:Lcom/mojang/serialization/MapCodec;
official b
Ldr;b:Lcom/mojang/serialization/MapCodec;
-
CAPTAIN_WITHOUT_RAID
- Mappings:
Namespace Name Mixin selector named CAPTAIN_WITHOUT_RAID
Lnet/minecraft/predicate/entity/RaiderPredicate;CAPTAIN_WITHOUT_RAID:Lnet/minecraft/predicate/entity/RaiderPredicate;
intermediary field_50163
Lnet/minecraft/class_9471;field_50163:Lnet/minecraft/class_9471;
official c
Ldr;c:Ldr;
-
-
Constructor Details
-
RaiderPredicate
public RaiderPredicate(boolean bool, boolean bool2)
-
-
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
Lbw;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
Lbw;a(Lbsr;Laqu;Lexc;)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 thehasRaid
record component.- Returns:
- the value of the
hasRaid
record component
-
isCaptain
public boolean isCaptain()Returns the value of theisCaptain
record component.- Returns:
- the value of the
isCaptain
record component
-