Package net.minecraft.component.type
Record Class DebugStickStateComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.DebugStickStateComponent
- Record Components:
properties-
public record DebugStickStateComponent(Map<RegistryEntry<Block>,Property<?>> properties)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/DebugStickStateComponentintermediary net/minecraft/class_9281official cxjnamed propertiesintermediary comp_2383official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DebugStickStateComponent> static final DebugStickStateComponentprivate final Map<RegistryEntry<Block>, Property<?>> The field for thepropertiesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<RegistryEntry<Block>, Property<?>> Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.with(RegistryEntry<Block> block, Property<?> property)
-
Field Details
-
properties
The field for thepropertiesrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/DebugStickStateComponent;DEFAULT:Lnet/minecraft/component/type/DebugStickStateComponent;intermediary field_49310Lnet/minecraft/class_9281;field_49310:Lnet/minecraft/class_9281;official aLcxj;a:Lcxj;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/DebugStickStateComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49311Lnet/minecraft/class_9281;field_49311:Lcom/mojang/serialization/Codec;official bLcxj;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DebugStickStateComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named withLnet/minecraft/component/type/DebugStickStateComponent;with(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/state/property/Property;)Lnet/minecraft/component/type/DebugStickStateComponent;intermediary method_57466Lnet/minecraft/class_9281;method_57466(Lnet/minecraft/class_6880;Lnet/minecraft/class_2769;)Lnet/minecraft/class_9281;official aLcxj;a(Ljm;Lduf;)Lcxj;
-
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). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-