Package net.minecraft.predicate.entity
Record Class EntityEquipmentPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.EntityEquipmentPredicate
- Record Components:
head
-chest
-legs
-feet
-mainhand
-offhand
-
public record EntityEquipmentPredicate(Optional<ItemPredicate> head, Optional<ItemPredicate> chest, Optional<ItemPredicate> legs, Optional<ItemPredicate> feet, Optional<ItemPredicate> mainhand, Optional<ItemPredicate> offhand)
extends Record
- Mappings:
Namespace Name official bm
intermediary net/minecraft/class_3735
named net/minecraft/predicate/entity/EntityEquipmentPredicate
official c
intermediary comp_1750
named head
official d
intermediary comp_1751
named chest
official e
intermediary comp_1752
named legs
official f
intermediary comp_1753
named feet
official g
intermediary comp_1754
named mainhand
official h
intermediary comp_1755
named offhand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
The field for thechest
record component.static final com.mojang.serialization.Codec<EntityEquipmentPredicate>
private final Optional<ItemPredicate>
The field for thefeet
record component.private final Optional<ItemPredicate>
The field for thehead
record component.private final Optional<ItemPredicate>
The field for thelegs
record component.private final Optional<ItemPredicate>
The field for themainhand
record component.private final Optional<ItemPredicate>
The field for theoffhand
record component.static final EntityEquipmentPredicate
-
Constructor Summary
ConstructorDescriptionEntityEquipmentPredicate
(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6) -
Method Summary
Modifier and TypeMethodDescriptionchest()
Returns the value of thechest
record component.final boolean
Indicates whether some other object is "equal to" this one.feet()
Returns the value of thefeet
record component.final int
hashCode()
Returns a hash code value for this object.head()
Returns the value of thehead
record component.legs()
Returns the value of thelegs
record component.mainhand()
Returns the value of themainhand
record component.offhand()
Returns the value of theoffhand
record component.boolean
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
head
The field for thehead
record component. -
chest
The field for thechest
record component. -
legs
The field for thelegs
record component. -
feet
The field for thefeet
record component. -
mainhand
The field for themainhand
record component. -
offhand
The field for theoffhand
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lbm;a:Lcom/mojang/serialization/Codec;
intermediary field_45744
Lnet/minecraft/class_3735;field_45744:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;CODEC:Lcom/mojang/serialization/Codec;
-
OMINOUS_BANNER_ON_HEAD
- Mappings:
Namespace Name Mixin selector official b
Lbm;b:Lbm;
intermediary field_19240
Lnet/minecraft/class_3735;field_19240:Lnet/minecraft/class_3735;
named OMINOUS_BANNER_ON_HEAD
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;OMINOUS_BANNER_ON_HEAD:Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;
-
-
Constructor Details
-
EntityEquipmentPredicate
public EntityEquipmentPredicate(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6)
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbm;a(Lblv;)Z
intermediary method_16226
Lnet/minecraft/class_3735;method_16226(Lnet/minecraft/class_1297;)Z
named test
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;test(Lnet/minecraft/entity/Entity;)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 withObjects::equals(Object,Object)
. -
head
Returns the value of thehead
record component.- Returns:
- the value of the
head
record component
-
chest
Returns the value of thechest
record component.- Returns:
- the value of the
chest
record component
-
legs
Returns the value of thelegs
record component.- Returns:
- the value of the
legs
record component
-
feet
Returns the value of thefeet
record component.- Returns:
- the value of the
feet
record component
-
mainhand
Returns the value of themainhand
record component.- Returns:
- the value of the
mainhand
record component
-
offhand
Returns the value of theoffhand
record component.- Returns:
- the value of the
offhand
record component
-