Package net.minecraft.world
Record Class TeleportTarget
java.lang.Object
java.lang.Record
net.minecraft.world.TeleportTarget
- Record Components:
newDimension
-pos
-velocity
-yaw
-pitch
-missingRespawnBlock
-
public record TeleportTarget(ServerWorld newDimension, Vec3d pos, Vec3d velocity, float yaw, float pitch, boolean missingRespawnBlock)
extends Record
Represents the position that an entity takes after being
moved between worlds.
- Mappings:
Namespace Name named net/minecraft/world/TeleportTarget
intermediary net/minecraft/class_5454
official eph
named newDimension
intermediary comp_2820
official a
named pos
intermediary comp_2821
official b
named velocity
intermediary comp_2822
official c
named yaw
intermediary comp_2823
official d
named pitch
intermediary comp_2824
official e
named missingRespawnBlock
intermediary comp_2825
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for themissingRespawnBlock
record component.private final ServerWorld
The field for thenewDimension
record component.private final float
The field for thepitch
record component.private final Vec3d
The field for thepos
record component.private final Vec3d
The field for thevelocity
record component.private final float
The field for theyaw
record component. -
Constructor Summary
ConstructorDescriptionTeleportTarget
(ServerWorld world) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch) TeleportTarget
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themissingRespawnBlock
record component.static TeleportTarget
missingSpawnBlock
(ServerWorld world) Returns the value of thenewDimension
record component.float
pitch()
Returns the value of thepitch
record component.pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.velocity()
Returns the value of thevelocity
record component.float
yaw()
Returns the value of theyaw
record component.
-
Field Details
-
newDimension
The field for thenewDimension
record component. -
pos
The field for thepos
record component. -
velocity
The field for thevelocity
record component. -
yaw
private final float yawThe field for theyaw
record component. -
pitch
private final float pitchThe field for thepitch
record component. -
missingRespawnBlock
private final boolean missingRespawnBlockThe field for themissingRespawnBlock
record component.
-
-
Constructor Details
-
TeleportTarget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/TeleportTarget;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;FF)V
intermediary <init>
Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;FF)V
official <init>
Leph;<init>(Laqm;Lewh;Lewh;FF)V
-
TeleportTarget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/TeleportTarget;<init>(Lnet/minecraft/server/world/ServerWorld;)V
intermediary <init>
Lnet/minecraft/class_5454;<init>(Lnet/minecraft/class_3218;)V
official <init>
Leph;<init>(Laqm;)V
-
TeleportTarget
public TeleportTarget(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool)
-
-
Method Details
-
missingSpawnBlock
- Mappings:
Namespace Name Mixin selector named missingSpawnBlock
Lnet/minecraft/world/TeleportTarget;missingSpawnBlock(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;
intermediary method_60635
Lnet/minecraft/class_5454;method_60635(Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;
official a
Leph;a(Laqm;)Leph;
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
newDimension
Returns the value of thenewDimension
record component.- Returns:
- the value of the
newDimension
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
velocity
Returns the value of thevelocity
record component.- Returns:
- the value of the
velocity
record component
-
yaw
public float yaw()Returns the value of theyaw
record component.- Returns:
- the value of the
yaw
record component
-
pitch
public float pitch()Returns the value of thepitch
record component.- Returns:
- the value of the
pitch
record component
-
missingRespawnBlock
public boolean missingRespawnBlock()Returns the value of themissingRespawnBlock
record component.- Returns:
- the value of the
missingRespawnBlock
record component
-