Package net.minecraft.component
Record Class ComponentChanges.Type
java.lang.Object
java.lang.Record
net.minecraft.component.ComponentChanges.Type
- Record Components:
- type-
- removed-
- Enclosing class:
- ComponentChanges
- Mappings:
- Namespace - Name - named - net/minecraft/component/ComponentChanges$Type- intermediary - net/minecraft/class_9326$class_9328- official - ks$b- named - type- intermediary - comp_2441- official - b- named - removed- intermediary - comp_2442- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ComponentChanges.Type> private final booleanThe field for theremovedrecord component.private final ComponentType<?> The field for thetyperecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.Codec<?> final inthashCode()Returns a hash code value for this object.booleanremoved()Returns the value of theremovedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
removedprivate final boolean removedThe field for theremovedrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/component/ComponentChanges$Type;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49594- Lnet/minecraft/class_9326$class_9328;field_49594:Lcom/mojang/serialization/Codec;- official - a- Lks$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
TypeType(ComponentType<?> componentType, boolean bool) 
 
- 
- 
Method Details- 
getValueCodecpublic com.mojang.serialization.Codec<?> getValueCodec()- Mappings:
- Namespace - Name - Mixin selector - named - getValueCodec- Lnet/minecraft/component/ComponentChanges$Type;getValueCodec()Lcom/mojang/serialization/Codec;- intermediary - method_57856- Lnet/minecraft/class_9326$class_9328;method_57856()Lcom/mojang/serialization/Codec;- official - a- Lks$b;a()Lcom/mojang/serialization/Codec;
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
removedpublic boolean removed()Returns the value of theremovedrecord component.- Returns:
- the value of the removedrecord component
 
 
-