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/BlockPointer- intermediary - net/minecraft/class_2342- official - kz- named - world- intermediary - comp_1967- official - a- named - pos- intermediary - comp_1968- official - b- named - state- intermediary - comp_1969- official - c- named - blockEntity- intermediary - comp_1970- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) 
- 
Method SummaryModifier 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- 
worldThe field for theworldrecord component.
- 
posThe field for theposrecord component.
- 
stateThe field for thestaterecord component.
- 
blockEntityThe field for theblockEntityrecord component.
 
- 
- 
Constructor Details- 
BlockPointerpublic BlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) 
 
- 
- 
Method Details- 
centerPos- Mappings:
- Namespace - Name - Mixin selector - named - centerPos- Lnet/minecraft/util/math/BlockPointer;centerPos()Lnet/minecraft/util/math/Vec3d;- intermediary - method_53906- Lnet/minecraft/class_2342;method_53906()Lnet/minecraft/class_243;- official - a- Lkz;a()Lfbb;
 
- 
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).
- 
worldReturns the value of theworldrecord component.- Returns:
- the value of the worldrecord component
 
- 
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
 
- 
blockEntityReturns the value of theblockEntityrecord component.- Returns:
- the value of the blockEntityrecord component
 
 
-