Package net.minecraft.component
Record Class ComponentChanges.AddedRemovedPair
java.lang.Object
java.lang.Record
net.minecraft.component.ComponentChanges.AddedRemovedPair
- Record Components:
added
-removed
-
- Enclosing class:
ComponentChanges
public static record ComponentChanges.AddedRemovedPair(ComponentMap added, Set<DataComponentType<?>> removed)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/ComponentChanges$AddedRemovedPair
intermediary net/minecraft/class_9326$class_9484
official kj$c
named added
intermediary comp_2554
official b
named removed
intermediary comp_2555
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentMap
The field for theadded
record component.static final ComponentChanges.AddedRemovedPair
private final Set
<DataComponentType<?>> The field for theremoved
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadded()
Returns the value of theadded
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Set
<DataComponentType<?>> removed()
Returns the value of theremoved
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
added
The field for theadded
record component. -
removed
The field for theremoved
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/component/ComponentChanges$AddedRemovedPair;EMPTY:Lnet/minecraft/component/ComponentChanges$AddedRemovedPair;
intermediary field_50235
Lnet/minecraft/class_9326$class_9484;field_50235:Lnet/minecraft/class_9326$class_9484;
official a
Lkj$c;a:Lkj$c;
-
-
Constructor Details
-
AddedRemovedPair
-
-
Method Details
-
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)
. -
added
Returns the value of theadded
record component.- Returns:
- the value of the
added
record component
-
removed
Returns the value of theremoved
record component.- Returns:
- the value of the
removed
record component
-