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 id
intermediary net/minecraft/class_2342
named net/minecraft/util/math/BlockPointer
official a
intermediary comp_1967
named getWorld
official b
intermediary comp_1968
named getPos
official c
intermediary comp_1969
named getBlockState
official d
intermediary comp_1970
named getBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DispenserBlockEntity
The field for thegetBlockEntity
record component.private final BlockState
The field for thegetBlockState
record component.private final BlockPos
The field for thegetPos
record component.private final ServerWorld
The field for thegetWorld
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockPointer
(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegetBlockEntity
record component.Returns the value of thegetBlockState
record component.getPos()
Returns the value of thegetPos
record component.getWorld()
Returns the value of thegetWorld
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
getWorld
The field for thegetWorld
record component. -
getPos
The field for thegetPos
record component. -
getBlockState
The field for thegetBlockState
record component. -
getBlockEntity
The field for thegetBlockEntity
record component.
-
-
Constructor Details
-
BlockPointer
public BlockPointer(ServerWorld serverWorld, BlockPos blockPos, BlockState blockState, DispenserBlockEntity dispenserBlockEntity)
-
-
Method Details
-
method_53906
- Mappings:
Namespace Name Mixin selector official a
Lid;a()Lehn;
intermediary method_53906
Lnet/minecraft/class_2342;method_53906()Lnet/minecraft/class_243;
named method_53906
Lnet/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 thegetWorld
record component.- Returns:
- the value of the
getWorld
record component
-
getPos
Returns the value of thegetPos
record component.- Returns:
- the value of the
getPos
record component
-
getBlockState
Returns the value of thegetBlockState
record component.- Returns:
- the value of the
getBlockState
record component
-
getBlockEntity
Returns the value of thegetBlockEntity
record component.- Returns:
- the value of the
getBlockEntity
record component
-