Minestom/src/main/java/net/minestom/server/entity/RelativeFlags.java
DeidaraMC 59ea880d26
feat: added player#teleportWithFlags for relative teleportation (#2029)
* 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>
2024-03-28 01:45:55 +00:00

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;
}