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 - bu- 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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionEntityEquipmentPredicate(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6, Optional<ItemPredicate> optional7) 
- 
Method SummaryModifier 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<Item> itemLookup, RegistryEntryLookup<BannerPattern> bannerPatternLookup) booleanfinal StringtoString()Returns a string representation of this record class.
- 
Field Details- 
headThe field for theheadrecord component.
- 
chestThe field for thechestrecord component.
- 
legsThe field for thelegsrecord component.
- 
feetThe field for thefeetrecord component.
- 
bodyThe field for thebodyrecord component.
- 
mainhandThe field for themainhandrecord component.
- 
offhandThe field for theoffhandrecord 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- Lbu;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
EntityEquipmentPredicatepublic EntityEquipmentPredicate(Optional<ItemPredicate> optional, Optional<ItemPredicate> optional2, Optional<ItemPredicate> optional3, Optional<ItemPredicate> optional4, Optional<ItemPredicate> optional5, Optional<ItemPredicate> optional6, Optional<ItemPredicate> optional7) 
 
- 
- 
Method Details- 
ominousBannerOnHeadpublic static EntityEquipmentPredicate ominousBannerOnHead(RegistryEntryLookup<Item> itemLookup, RegistryEntryLookup<BannerPattern> bannerPatternLookup) - Mappings:
- Namespace - Name - Mixin selector - named - ominousBannerOnHead- Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;ominousBannerOnHead(Lnet/minecraft/registry/RegistryEntryLookup;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_7871;)Lnet/minecraft/class_3735;- official - a- Lbu;a(Ljs;Ljs;)Lbu;
 
- 
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- Lbu;a(Lbum;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
headReturns the value of theheadrecord component.- Returns:
- the value of the headrecord component
 
- 
chestReturns the value of thechestrecord component.- Returns:
- the value of the chestrecord component
 
- 
legsReturns the value of thelegsrecord component.- Returns:
- the value of the legsrecord component
 
- 
feetReturns the value of thefeetrecord component.- Returns:
- the value of the feetrecord component
 
- 
bodyReturns the value of thebodyrecord component.- Returns:
- the value of the bodyrecord component
 
- 
mainhandReturns the value of themainhandrecord component.- Returns:
- the value of the mainhandrecord component
 
- 
offhandReturns the value of theoffhandrecord component.- Returns:
- the value of the offhandrecord component
 
 
-