Package net.minecraft
Record Class class_6686.class_6711
java.lang.Object
java.lang.Record
net.minecraft.class_6686.class_6711
- Record Components:
state-
- All Implemented Interfaces:
class_6686.class_6715
- Enclosing class:
- class_6686
private static record class_6686.class_6711(BlockState state)
extends Record
implements class_6686.class_6715
- Mappings:
Namespace Name official csv$qintermediary net/minecraft/class_6686$class_6711named net/minecraft/class_6686$class_6711official aintermediary comp_210named state
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for thestaterecord 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.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.tryApply(int int2, int int3, int int4)
-
Field Details
-
state
The field for thestaterecord component.
-
-
Constructor Details
-
class_6711
class_6711(BlockState blockState)
-
-
Method Details
-
tryApply
- Specified by:
tryApplyin interfaceclass_6686.class_6715
-
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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-