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/EntityEquipmentPredicateintermediary net/minecraft/class_3735official bsnamed headintermediary comp_1750official bnamed chestintermediary comp_1751official cnamed legsintermediary comp_1752official dnamed feetintermediary comp_1753official enamed bodyintermediary comp_2620official fnamed mainhandintermediary comp_1754official gnamed offhandintermediary comp_1755official h
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<ItemPredicate> The field for thebodyrecord component.private final Optional<ItemPredicate> The field for thechestrecord component.static final com.mojang.serialization.Codec<EntityEquipmentPredicate> private final Optional<ItemPredicate> The field for thefeetrecord component.private final Optional<ItemPredicate> The field for theheadrecord component.private final Optional<ItemPredicate> The field for thelegsrecord component.private final Optional<ItemPredicate> The field for themainhandrecord component.private final Optional<ItemPredicate> The field for theoffhandrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityEquipmentPredicate(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 thebodyrecord component.chest()Returns the value of thechestrecord component.final booleanIndicates whether some other object is "equal to" this one.feet()Returns the value of thefeetrecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.legs()Returns the value of thelegsrecord component.mainhand()Returns the value of themainhandrecord component.offhand()Returns the value of theoffhandrecord component.static EntityEquipmentPredicateominousBannerOnHead(RegistryEntryLookup<BannerPattern> bannerPatternLookup) booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
head
The field for theheadrecord component. -
chest
The field for thechestrecord component. -
legs
The field for thelegsrecord component. -
feet
The field for thefeetrecord component. -
body
The field for thebodyrecord component. -
mainhand
The field for themainhandrecord component. -
offhand
The field for theoffhandrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/EntityEquipmentPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45744Lnet/minecraft/class_3735;field_45744:Lcom/mojang/serialization/Codec;official aLbs;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 ominousBannerOnHeadLnet/minecraft/predicate/entity/EntityEquipmentPredicate;ominousBannerOnHead(Lnet/minecraft/registry/RegistryEntryLookup;)Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;intermediary method_58057Lnet/minecraft/class_3735;method_58057(Lnet/minecraft/class_7871;)Lnet/minecraft/class_3735;official aLbs;a(Ljn;)Lbs;
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityEquipmentPredicate;test(Lnet/minecraft/entity/Entity;)Zintermediary method_16226Lnet/minecraft/class_3735;method_16226(Lnet/minecraft/class_1297;)Zofficial aLbs;a(Lbsr;)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 theheadrecord component.- Returns:
- the value of the
headrecord component
-
chest
Returns the value of thechestrecord component.- Returns:
- the value of the
chestrecord component
-
legs
Returns the value of thelegsrecord component.- Returns:
- the value of the
legsrecord component
-
feet
Returns the value of thefeetrecord component.- Returns:
- the value of the
feetrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
mainhand
Returns the value of themainhandrecord component.- Returns:
- the value of the
mainhandrecord component
-
offhand
Returns the value of theoffhandrecord component.- Returns:
- the value of the
offhandrecord component
-