net.minecraft.world

public record TeleportTarget

net.minecraft.world.level.portal.TeleportTransition
net.minecraft.class_5454
net.minecraft.world.TeleportTarget

Field summary

Modifier and TypeField
private final ServerWorld
newLevel
comp_2820
world
private final Vec3d
position
comp_2821
position
private final Vec3d
deltaMovement
comp_2822
velocity
private final float
yRot
comp_2823
yaw
private final float
xRot
comp_2824
pitch
private final boolean
missingRespawnBlock
comp_2825
missingRespawnBlock
private final boolean
asPassenger
comp_3285
asPassenger
private final Set<PositionFlag>
relatives
comp_3183
relatives
private final TeleportTarget$PostDimensionTransition
postTeleportTransition
comp_2864
postTeleportTransition
public static final TeleportTarget$PostDimensionTransition
DO_NOTHING
field_52245
NO_OP
public static final TeleportTarget$PostDimensionTransition
PLAY_PORTAL_SOUND
field_52246
SEND_TRAVEL_THROUGH_PORTAL_PACKET
public static final TeleportTarget$PostDimensionTransition
PLACE_PORTAL_TICKET
field_52247
ADD_PORTAL_CHUNK_TICKET

Constructor summary

ModifierConstructor
public (ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, TeleportTarget$PostDimensionTransition postDimensionTransition)
public (ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget$PostDimensionTransition postDimensionTransition)
public (ServerWorld world, Vec3d position, Vec3d velocity, float yaw, float pitch, boolean missingRespawnBlock, boolean asPassenger, Set<PositionFlag> relatives, TeleportTarget$PostDimensionTransition postTeleportTransition)

Method summary

Modifier and TypeMethod
private static void
playPortalSound(Entity entity)
method_61024(class_1297 arg0)
sendTravelThroughPortalPacket(Entity entity)
private static void
placePortalTicket(Entity entity)
method_61025(class_1297 arg0)
addPortalChunkTicket(Entity entity)
public static TeleportTarget
createDefault(ServerPlayer player, TeleportTransition$PostTeleportTransition postTeleportTransition)
method_74892(class_3222 arg0, class_5454$class_9823 arg1)
noRespawnPointSet(ServerPlayerEntity player, TeleportTarget$PostDimensionTransition postDimensionTransition)
public static TeleportTarget
missingRespawnBlock(ServerPlayer player, TeleportTransition$PostTeleportTransition postTeleportTransition)
method_60635(class_3222 arg0, class_5454$class_9823 arg1)
missingSpawnBlock(ServerPlayerEntity player, TeleportTarget$PostDimensionTransition postDimensionTransition)
private static Vec3d
findAdjustedSharedSpawnPos(ServerLevel newLevel, Entity entity)
method_61023(class_3218 arg0, class_1297 arg1)
getWorldSpawnPos(ServerWorld world, Entity entity)
public TeleportTarget
withRotation(float yRot, float xRot)
method_61823(float arg0, float arg1)
withRotation(float yaw, float pitch)
public TeleportTarget
withPosition(Vec3 position)
method_64829(class_243 arg0)
withPosition(Vec3d position)
public TeleportTarget
transitionAsPassenger()
method_64828()
asPassenger()
public ServerWorld
newLevel()
comp_2820()
world()
public Vec3d
position()
comp_2821()
position()
public Vec3d
deltaMovement()
comp_2822()
velocity()
public float
yRot()
comp_2823()
yaw()
public float
xRot()
comp_2824()
pitch()
public boolean
missingRespawnBlock()
comp_2825()
missingRespawnBlock()
public boolean
asPassenger()
comp_3285()
asPassenger()
public Set<PositionFlag>
relatives()
comp_3183()
relatives()
public TeleportTarget$PostDimensionTransition
postTeleportTransition()
comp_2864()
postTeleportTransition()
private static void
lambda$static$0(Entity arg0)
method_61026(class_1297 arg0)
method_61026(Entity entity)