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-previousStateAtDestination-
- Enclosing class:
CloneCommand
private static record CloneCommand.BlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommand.BlockEntityInfo blockEntityInfo, BlockState previousStateAtDestination)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/command/CloneCommand$BlockInfointermediary net/minecraft/class_3023$class_3024official anz$bnamed posintermediary comp_2539official anamed stateintermediary comp_2540official bnamed blockEntityInfointermediary comp_2541official cnamed previousStateAtDestinationintermediary comp_4032official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable CloneCommand.BlockEntityInfoThe field for theblockEntityInforecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thepreviousStateAtDestinationrecord component.private final BlockStateThe field for thestaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockInfo(BlockPos pos, BlockState state, @Nullable CloneCommand.BlockEntityInfo blockEntityInfo, BlockState blockState) -
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.Returns the value of thepreviousStateAtDestinationrecord 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. -
previousStateAtDestination
The field for thepreviousStateAtDestinationrecord component.
-
-
Constructor Details
-
BlockInfo
BlockInfo(BlockPos pos, BlockState state, @Nullable @Nullable CloneCommand.BlockEntityInfo blockEntityInfo, BlockState blockState) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/command/CloneCommand$BlockInfo;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/server/command/CloneCommand$BlockEntityInfo;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_3023$class_3024;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3023$class_9450;Lnet/minecraft/class_2680;)Vofficial <init>Lanz$b;<init>(Lja;Lejm;Lanz$a;Lejm;)V
-
-
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
-
previousStateAtDestination
Returns the value of thepreviousStateAtDestinationrecord component.- Returns:
- the value of the
previousStateAtDestinationrecord component
-