Package net.minecraft.predicate.entity
Record Class SlotsPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.SlotsPredicate
- Record Components:
slots-
- Mappings:
Namespace Name named net/minecraft/predicate/entity/SlotsPredicateintermediary net/minecraft/class_9350official dznamed slotsintermediary comp_2455official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SlotsPredicate> private final Map<SlotRange, ItemPredicate> The field for theslotsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanprivate static booleanmatches(Entity entity, ItemPredicate itemPredicate, IntList slotIds) slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
slots
The field for theslotsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/SlotsPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49755Lnet/minecraft/class_9350;field_49755:Lcom/mojang/serialization/Codec;official aLdz;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
SlotsPredicate
-
-
Method Details
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/predicate/entity/SlotsPredicate;matches(Lnet/minecraft/entity/Entity;)Zintermediary method_58119Lnet/minecraft/class_9350;method_58119(Lnet/minecraft/class_1297;)Zofficial aLdz;a(Lbsr;)Z
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/predicate/entity/SlotsPredicate;matches(Lnet/minecraft/entity/Entity;Lnet/minecraft/predicate/item/ItemPredicate;Lit/unimi/dsi/fastutil/ints/IntList;)Zintermediary method_58120Lnet/minecraft/class_9350;method_58120(Lnet/minecraft/class_1297;Lnet/minecraft/class_2073;Lit/unimi/dsi/fastutil/ints/IntList;)Zofficial aLdz;a(Lbsr;Lcs;Lit/unimi/dsi/fastutil/ints/IntList;)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). -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-