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 bointermediary net/minecraft/class_3735named net/minecraft/predicate/entity/EntityEquipmentPredicateofficial bintermediary comp_1750named headofficial cintermediary comp_1751named chestofficial dintermediary comp_1752named legsofficial eintermediary comp_1753named feetofficial fintermediary comp_1754named mainhandofficial gintermediary comp_1755named offhand
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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) -
Method Summary
Modifier and TypeMethodDescriptionchest()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.static EntityEquipmentPredicatemethod_58057(RegistryEntryLookup<BannerPattern> registryEntryLookup) offhand()Returns the value of theoffhandrecord component.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. -
mainhand
The field for themainhandrecord component. -
offhand
The field for theoffhandrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLbo;a:Lcom/mojang/serialization/Codec;intermediary field_45744Lnet/minecraft/class_3735;field_45744:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/predicate/entity/EntityEquipmentPredicate;CODEC: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)
-
-
Method Details
-
method_58057
public static EntityEquipmentPredicate method_58057(RegistryEntryLookup<BannerPattern> registryEntryLookup) - Mappings:
Namespace Name Mixin selector official aLbo;a(Lio;)Lbo;intermediary method_58057Lnet/minecraft/class_3735;method_58057(Lnet/minecraft/class_7871;)Lnet/minecraft/class_3735;named method_58057Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;method_58057(Lnet/minecraft/registry/RegistryEntryLookup;)Lnet/minecraft/predicate/entity/EntityEquipmentPredicate;
-
test
- Mappings:
Namespace Name Mixin selector official aLbo;a(Lbqa;)Zintermediary method_16226Lnet/minecraft/class_3735;method_16226(Lnet/minecraft/class_1297;)Znamed testLnet/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 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
-
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
-