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 kk$b
named type
intermediary comp_2441
official b
named removed
intermediary comp_2442
official c
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentChanges.Type> private final boolean
The field for theremoved
record component.private final ComponentType
<?> The field for thetype
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.Codec
<?> final int
hashCode()
Returns a hash code value for this object.boolean
removed()
Returns the value of theremoved
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
removed
private final boolean removedThe field for theremoved
record 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
Lkk$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Type
Type(ComponentType<?> componentType, boolean bool)
-
-
Method Details
-
getValueCodec
public 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
Lkk$b;a()Lcom/mojang/serialization/Codec;
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
removed
public boolean removed()Returns the value of theremoved
record component.- Returns:
- the value of the
removed
record component
-