Package net.minecraft.server.commands
Record Class CloneCommands.CloneBlockInfo
java.lang.Object
java.lang.Record
net.minecraft.server.commands.CloneCommands.CloneBlockInfo
- Enclosing class:
CloneCommands
static record CloneCommands.CloneBlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommands.CloneBlockEntityInfo blockEntityInfo)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CloneCommands.CloneBlockEntityInfoThe field for theblockEntityInforecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCloneBlockInfo(BlockPos pos, BlockState state, CloneCommands.CloneBlockEntityInfo blockEntityInfo) Creates an instance of aCloneBlockInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
state
The field for thestaterecord component. -
blockEntityInfo
The field for theblockEntityInforecord component.
-
-
Constructor Details
-
CloneBlockInfo
CloneBlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommands.CloneBlockEntityInfo blockEntityInfo) Creates an instance of aCloneBlockInforecord class.- Parameters:
pos- the value for theposrecord componentstate- the value for thestaterecord componentblockEntityInfo- the value for theblockEntityInforecord component
-
-
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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
blockEntityInfo
Returns the value of theblockEntityInforecord component.- Returns:
- the value of the
blockEntityInforecord component
-