Record Class InventoryChangedCriterion.Conditions.Slots
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.InventoryChangedCriterion.Conditions.Slots
- Record Components:
occupied-full-empty-
- Enclosing class:
InventoryChangedCriterion.Conditions
public static record InventoryChangedCriterion.Conditions.Slots(NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty)
extends Record
- Mappings:
Namespace Name named net/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions$Slotsintermediary net/minecraft/class_2066$class_2068$class_8948official cg$a$anamed occupiedintermediary comp_2059official cnamed fullintermediary comp_2060official dnamed emptyintermediary comp_2061official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InventoryChangedCriterion.Conditions.Slotsstatic final com.mojang.serialization.Codec<InventoryChangedCriterion.Conditions.Slots> private final NumberRange.IntRangeThe field for theemptyrecord component.private final NumberRange.IntRangeThe field for thefullrecord component.private final NumberRange.IntRangeThe field for theoccupiedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSlots(NumberRange.IntRange intRange, NumberRange.IntRange intRange2, NumberRange.IntRange intRange3) -
Method Summary
Modifier and TypeMethodDescriptionempty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.full()Returns the value of thefullrecord component.final inthashCode()Returns a hash code value for this object.occupied()Returns the value of theoccupiedrecord component.booleantest(int full, int empty, int occupied) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
occupied
The field for theoccupiedrecord component. -
full
The field for thefullrecord component. -
empty
The field for theemptyrecord component. -
CODEC
public static final com.mojang.serialization.Codec<InventoryChangedCriterion.Conditions.Slots> CODEC- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions$Slots;CODEC:Lcom/mojang/serialization/Codec;intermediary field_47264Lnet/minecraft/class_2066$class_2068$class_8948;field_47264:Lcom/mojang/serialization/Codec;official aLcg$a$a;a:Lcom/mojang/serialization/Codec;
-
ANY
- Mappings:
Namespace Name Mixin selector named ANYLnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions$Slots;ANY:Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions$Slots;intermediary field_47265Lnet/minecraft/class_2066$class_2068$class_8948;field_47265:Lnet/minecraft/class_2066$class_2068$class_8948;official bLcg$a$a;b:Lcg$a$a;
-
-
Constructor Details
-
Slots
public Slots(NumberRange.IntRange intRange, NumberRange.IntRange intRange2, NumberRange.IntRange intRange3)
-
-
Method Details
-
test
public boolean test(int full, int empty, int occupied) - Mappings:
Namespace Name Mixin selector named testLnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions$Slots;test(III)Zintermediary method_54998Lnet/minecraft/class_2066$class_2068$class_8948;method_54998(III)Zofficial aLcg$a$a;a(III)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). -
occupied
Returns the value of theoccupiedrecord component.- Returns:
- the value of the
occupiedrecord component
-
full
Returns the value of thefullrecord component.- Returns:
- the value of the
fullrecord component
-
empty
Returns the value of theemptyrecord component.- Returns:
- the value of the
emptyrecord component
-