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
-body
-mainhand
-offhand
-
public record EntityEquipmentPredicate(Optional<ItemPredicate> head, Optional<ItemPredicate> chest, Optional<ItemPredicate> legs, Optional<ItemPredicate> feet, Optional<ItemPredicate> body, Optional<ItemPredicate> mainhand, Optional<ItemPredicate> offhand)
extends Record
- Mappings:
Namespace Name named net/minecraft/predicate/entity/EntityEquipmentPredicate
intermediary net/minecraft/class_3735
official bs
named head
intermediary comp_1750
official b
named chest
intermediary comp_1751
official c
named legs
intermediary comp_1752
official d
named feet
intermediary comp_1753
official e
named body
intermediary comp_2620
official f
named mainhand
intermediary comp_1754
official g
named offhand
intermediary comp_1755
official h
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional
<ItemPredicate> The field for thebody
record component.private 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. -
Constructor Summary
ConstructorDescriptionEntityEquipmentPredicate
(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6, Optional<ItemPredicate> optional7) -
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns the value of thebody
record component.chest()
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.static EntityEquipmentPredicate
ominousBannerOnHead
(RegistryEntryLookup<BannerPattern> bannerPatternLookup) 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. -
body
The field for thebody
record component. -
mainhand
The field for themainhand
record component. -
offhand
The field for theoffhand
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45744
Lnet/minecraft/class_3735;field_45744:Lcom/mojang/serialization/Codec;
official a
Lbs;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EntityEquipmentPredicate
public EntityEquipmentPredicate(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6, Optional<ItemPredicate> optional7)
-
-
Method Details
-
ominousBannerOnHead
public static EntityEquipmentPredicate ominousBannerOnHead(RegistryEntryLookup<BannerPattern> bannerPatternLookup) - Mappings:
Namespace Name Mixin selector named ominousBannerOnHead
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;ominousBannerOnHead(Lnet/minecraft/registry/RegistryEntryLookup;)Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;
intermediary method_58057
Lnet/minecraft/class_3735;method_58057(Lnet/minecraft/class_7871;)Lnet/minecraft/class_3735;
official a
Lbs;a(Ljn;)Lbs;
-
test
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;test(Lnet/minecraft/entity/Entity;)Z
intermediary method_16226
Lnet/minecraft/class_3735;method_16226(Lnet/minecraft/class_1297;)Z
official a
Lbs;a(Lbsq;)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
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
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
-