Uses of Enum Class
net.minecraft.network.packet.s2c.play.PositionFlag
Package
Description
-
Uses of PositionFlag in net.minecraft.client.network
Modifier and TypeMethodDescriptionprivate static boolean
ClientPlayNetworkHandler.setPosition
(PlayerPosition pos, Set<PositionFlag> flags, Entity entity, boolean bool) -
Uses of PositionFlag in net.minecraft.entity
Modifier and TypeMethodDescriptionvoid
Entity.setPosition
(PlayerPosition pos, Set<PositionFlag> flags) boolean
Entity.teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position. -
Uses of PositionFlag in net.minecraft.entity.player
Modifier and TypeMethodDescriptionprivate static double
PlayerPosition.resolve
(double delta, double value, Set<PositionFlag> flags, PositionFlag deltaFlag) Modifier and TypeMethodDescriptionstatic PlayerPosition
PlayerPosition.apply
(PlayerPosition currentPos, PlayerPosition newPos, Set<PositionFlag> flags) private static double
PlayerPosition.resolve
(double delta, double value, Set<PositionFlag> flags, PositionFlag deltaFlag) -
Uses of PositionFlag in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionstatic final Set
<PositionFlag> PositionFlag.DELTA
static final PacketCodec
<ByteBuf, Set<PositionFlag>> PositionFlag.PACKET_CODEC
private final Set
<PositionFlag> EntityPositionS2CPacket.relatives
The field for therelatives
record component.private final Set
<PositionFlag> PlayerPositionLookS2CPacket.relatives
The field for therelatives
record component.static final Set
<PositionFlag> PositionFlag.ROT
static final Set
<PositionFlag> PositionFlag.VALUES
Modifier and TypeMethodDescriptionstatic PositionFlag
Returns the enum constant of this class with the specified name.static PositionFlag[]
PositionFlag.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic Set
<PositionFlag> PositionFlag.combine
(Set<PositionFlag>[] sets) static Set
<PositionFlag> PositionFlag.getFlags
(int mask) EntityPositionS2CPacket.relatives()
Returns the value of therelatives
record component.PlayerPositionLookS2CPacket.relatives()
Returns the value of therelatives
record component.Modifier and TypeMethodDescriptionstatic EntityPositionS2CPacket
EntityPositionS2CPacket.create
(int entityId, PlayerPosition change, Set<PositionFlag> relatives, boolean onGround) static int
PositionFlag.getBitfield
(Set<PositionFlag> flags) static PlayerPositionLookS2CPacket
PlayerPositionLookS2CPacket.of
(int teleportId, PlayerPosition pos, Set<PositionFlag> flags) ModifierConstructorDescriptionEntityPositionS2CPacket
(int int2, PlayerPosition playerPosition, Set<PositionFlag> set, boolean bool) PlayerPositionLookS2CPacket
(int int2, PlayerPosition playerPosition, Set<PositionFlag> set) -
Uses of PositionFlag in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static Set
<PositionFlag> TeleportCommand.getFlags
(PosArgument pos, @Nullable PosArgument rotation, boolean sameDimension) Modifier and TypeMethodDescriptionprivate static void
TeleportCommand.teleport
(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PositionFlag> movementFlags, float yaw, float pitch, @Nullable LookTarget facingLocation) -
Uses of PositionFlag in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayNetworkHandler.requestTeleport
(PlayerPosition pos, Set<PositionFlag> flags) boolean
ServerPlayerEntity.teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position. -
Uses of PositionFlag in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Set
<PositionFlag> TeleportTarget.relatives
The field for therelatives
record component.Modifier and TypeMethodDescriptionTeleportTarget.relatives()
Returns the value of therelatives
record component.ModifierConstructorDescriptionTeleportTarget
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, boolean bool2, Set<PositionFlag> set, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget.PostDimensionTransition postDimensionTransition)