Package net.minecraft.server.command
Record Class CloneCommand.BlockEntityInfo
java.lang.Object
java.lang.Record
net.minecraft.server.command.CloneCommand.BlockEntityInfo
- Record Components:
nbt
-components
-
- Enclosing class:
CloneCommand
private static record CloneCommand.BlockEntityInfo(NbtCompound nbt, ComponentMap components)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/command/CloneCommand$BlockEntityInfo
intermediary net/minecraft/class_3023$class_9450
official anp$a
named nbt
intermediary comp_2537
official a
named components
intermediary comp_2538
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentMap
The field for thecomponents
record component.private final NbtCompound
The field for thenbt
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponents
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.nbt()
Returns the value of thenbt
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
nbt
The field for thenbt
record component. -
components
The field for thecomponents
record component.
-
-
Constructor Details
-
BlockEntityInfo
BlockEntityInfo(NbtCompound nbtCompound, ComponentMap componentMap)
-
-
Method Details
-
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)
. -
nbt
Returns the value of thenbt
record component.- Returns:
- the value of the
nbt
record component
-
components
Returns the value of thecomponents
record component.- Returns:
- the value of the
components
record component
-