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$Typeintermediary net/minecraft/class_9326$class_9328official kn$bnamed typeintermediary comp_2441official bnamed removedintermediary comp_2442official c
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
type
The field for thetyperecord component. -
removed
private final boolean removedThe field for theremovedrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/ComponentChanges$Type;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49594Lnet/minecraft/class_9326$class_9328;field_49594:Lcom/mojang/serialization/Codec;official aLkn$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 getValueCodecLnet/minecraft/component/ComponentChanges$Type;getValueCodec()Lcom/mojang/serialization/Codec;intermediary method_57856Lnet/minecraft/class_9326$class_9328;method_57856()Lcom/mojang/serialization/Codec;official aLkn$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 thetyperecord component.- Returns:
- the value of the
typerecord component
-
removed
public boolean removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-