mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-25 22:14:53 +02:00
* feat: added player#teleportWithFlags for relative teleportation * requested changes and improvements * add the new teleport method override player * chore: cleanup * chore: change relative flags from enums to constants --------- Co-authored-by: DeidaraMC <DeidaraMC>
13 lines
447 B
Java
13 lines
447 B
Java
package net.minestom.server.entity;
|
|
|
|
public class RelativeFlags {
|
|
public static final int NONE = 0x00;
|
|
public static final int X = 0x01;
|
|
public static final int Y = 0x02;
|
|
public static final int Z = 0x04;
|
|
public static final int YAW = 0x08;
|
|
public static final int PITCH = 0x10;
|
|
public static final int COORD = X | Y | Z;
|
|
public static final int VIEW = YAW | PITCH;
|
|
public static final int ALL = COORD | VIEW;
|
|
} |