Package net.minecraft.util.math
Record Class BlockPointer
java.lang.Object
java.lang.Record
net.minecraft.util.math.BlockPointer
- Record Components:
getWorld-getPos-getBlockState-getBlockEntity-
public record BlockPointer(ServerWorld getWorld, BlockPos getPos, BlockState getBlockState, DispenserBlockEntity getBlockEntity)
extends Record
- Mappings:
Namespace Name official idintermediary net/minecraft/class_2342named net/minecraft/util/math/BlockPointerofficial aintermediary comp_1967named getWorldofficial bintermediary comp_1968named getPosofficial cintermediary comp_1969named getBlockStateofficial dintermediary comp_1970named getBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DispenserBlockEntityThe field for thegetBlockEntityrecord component.private final BlockStateThe field for thegetBlockStaterecord component.private final BlockPosThe field for thegetPosrecord component.private final ServerWorldThe field for thegetWorldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetBlockEntityrecord component.Returns the value of thegetBlockStaterecord component.getPos()Returns the value of thegetPosrecord component.getWorld()Returns the value of thegetWorldrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
getWorld
The field for thegetWorldrecord component. -
getPos
The field for thegetPosrecord component. -
getBlockState
The field for thegetBlockStaterecord component. -
getBlockEntity
The field for thegetBlockEntityrecord component.
-
-
Constructor Details
-
BlockPointer
public BlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity)
-
-
Method Details
-
method_53906
- Mappings:
Namespace Name Mixin selector official aLid;a()Lehn;intermediary method_53906Lnet/minecraft/class_2342;method_53906()Lnet/minecraft/class_243;named method_53906Lnet/minecraft/util/math/BlockPointer;method_53906()Lnet/minecraft/util/math/Vec3d;
-
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). -
getWorld
Returns the value of thegetWorldrecord component.- Returns:
- the value of the
getWorldrecord component
-
getPos
Returns the value of thegetPosrecord component.- Returns:
- the value of the
getPosrecord component
-
getBlockState
Returns the value of thegetBlockStaterecord component.- Returns:
- the value of the
getBlockStaterecord component
-
getBlockEntity
Returns the value of thegetBlockEntityrecord component.- Returns:
- the value of the
getBlockEntityrecord component
-