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 aly$b
named pos
intermediary comp_2539
official a
named state
intermediary comp_2540
official b
named blockEntityInfo
intermediary comp_2541
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable CloneCommand.BlockEntityInfo
The field for theblockEntityInfo
record component.private final BlockPos
The field for thepos
record component.private final BlockState
The field for thestate
record component. -
Constructor Summary
ConstructorDescriptionBlockInfo
(BlockPos pos, BlockState state, @Nullable CloneCommand.BlockEntityInfo blockEntityInfo) Creates an instance of aBlockInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityInfo
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.pos()
Returns the value of thepos
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pos
The field for thepos
record component. -
state
The field for thestate
record component. -
blockEntityInfo
The field for theblockEntityInfo
record component.
-
-
Constructor Details
-
BlockInfo
BlockInfo(BlockPos pos, BlockState state, @Nullable @Nullable CloneCommand.BlockEntityInfo blockEntityInfo) Creates an instance of aBlockInfo
record class.- Parameters:
pos
- the value for thepos
record componentstate
- the value for thestate
record componentblockEntityInfo
- the value for theblockEntityInfo
record 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 thepos
record component.- Returns:
- the value of the
pos
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
blockEntityInfo
Returns the value of theblockEntityInfo
record component.- Returns:
- the value of the
blockEntityInfo
record component
-