Package net.minecraft.util.math
Record Class BlockPointer
java.lang.Object
java.lang.Record
net.minecraft.util.math.BlockPointer
- Record Components:
world-pos-state-blockEntity-
public record BlockPointer(ServerWorld world, BlockPos pos, BlockState state, DispenserBlockEntity blockEntity)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/math/BlockPointerintermediary net/minecraft/class_2342official kunamed worldintermediary comp_1967official anamed posintermediary comp_1968official bnamed stateintermediary comp_1969official cnamed blockEntityintermediary comp_1970official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DispenserBlockEntityThe field for theblockEntityrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component.private final ServerWorldThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityrecord 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.world()Returns the value of theworldrecord component.
-
Field Details
-
world
The field for theworldrecord component. -
pos
The field for theposrecord component. -
state
The field for thestaterecord component. -
blockEntity
The field for theblockEntityrecord component.
-
-
Constructor Details
-
BlockPointer
public BlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity)
-
-
Method Details
-
centerPos
- Mappings:
Namespace Name Mixin selector named centerPosLnet/minecraft/util/math/BlockPointer;centerPos()Lnet/minecraft/util/math/Vec3d;intermediary method_53906Lnet/minecraft/class_2342;method_53906()Lnet/minecraft/class_243;official aLku;a()Lexc;
-
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). -
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
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
-
blockEntity
Returns the value of theblockEntityrecord component.- Returns:
- the value of the
blockEntityrecord component
-