Package net.minecraft.server.command
Record Class CloneCommand.BlockInfo
java.lang.Object
java.lang.Record
net.minecraft.server.command.CloneCommand.BlockInfo
- Record Components:
- pos-
- state-
- blockEntityInfo-
- Enclosing class:
- CloneCommand
private static record CloneCommand.BlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommand.BlockEntityInfo blockEntityInfo)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/server/command/CloneCommand$BlockInfo- intermediary - net/minecraft/class_3023$class_3024- official - aml$b- named - pos- intermediary - comp_2539- official - a- named - state- intermediary - comp_2540- official - b- named - blockEntityInfo- intermediary - comp_2541- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final @Nullable CloneCommand.BlockEntityInfoThe field for theblockEntityInforecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionBlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommand.BlockEntityInfo blockEntityInfo) Creates an instance of aBlockInforecord class.
- 
Method SummaryModifier 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- 
posThe field for theposrecord component.
- 
stateThe field for thestaterecord component.
- 
blockEntityInfoThe field for theblockEntityInforecord component.
 
- 
- 
Constructor Details- 
BlockInfoBlockInfo(BlockPos pos, BlockState state, @Nullable @Nullable CloneCommand.BlockEntityInfo blockEntityInfo) Creates an instance of aBlockInforecord class.- Parameters:
- pos- the value for the- posrecord component
- state- the value for the- staterecord component
- blockEntityInfo- the value for the- blockEntityInforecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
stateReturns the value of thestaterecord component.- Returns:
- the value of the staterecord component
 
- 
blockEntityInfoReturns the value of theblockEntityInforecord component.- Returns:
- the value of the blockEntityInforecord component
 
 
-