Record Class InventoryChangeTrigger.TriggerInstance.Slots
java.lang.Object
java.lang.Record
net.minecraft.advancements.critereon.InventoryChangeTrigger.TriggerInstance.Slots
- Enclosing class:
- InventoryChangeTrigger.TriggerInstance
public static record InventoryChangeTrigger.TriggerInstance.Slots(MinMaxBounds.Ints occupied, MinMaxBounds.Ints full, MinMaxBounds.Ints empty)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final InventoryChangeTrigger.TriggerInstance.Slotsstatic final com.mojang.serialization.Codec<InventoryChangeTrigger.TriggerInstance.Slots>private final MinMaxBounds.IntsThe field for theemptyrecord component.private final MinMaxBounds.IntsThe field for thefullrecord component.private final MinMaxBounds.IntsThe field for theoccupiedrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSlots(MinMaxBounds.Ints occupied, MinMaxBounds.Ints full, MinMaxBounds.Ints empty) Creates an instance of aSlotsrecord class.
- 
Method SummaryModifier 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.booleanmatches(int p_312470_, int p_312809_, int p_311989_) occupied()Returns the value of theoccupiedrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
occupiedThe field for theoccupiedrecord component.
- 
fullThe field for thefullrecord component.
- 
emptyThe field for theemptyrecord component.
- 
CODECpublic static final com.mojang.serialization.Codec<InventoryChangeTrigger.TriggerInstance.Slots> CODEC
- 
ANY
 
- 
- 
Constructor Details- 
SlotsCreates an instance of aSlotsrecord class.- Parameters:
- occupied- the value for the- occupiedrecord component
- full- the value for the- fullrecord component
- empty- the value for the- emptyrecord component
 
 
- 
- 
Method Details- 
matchespublic boolean matches(int p_312470_, int p_312809_, int p_311989_) 
- 
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).
- 
occupiedReturns the value of theoccupiedrecord component.- Returns:
- the value of the occupiedrecord component
 
- 
fullReturns the value of thefullrecord component.- Returns:
- the value of the fullrecord component
 
- 
emptyReturns the value of theemptyrecord component.- Returns:
- the value of the emptyrecord component
 
 
-