Class RelativeFlag
java.lang.Object
com.github.retrooper.packetevents.protocol.teleport.RelativeFlag
An immutable container for a single relative teleport flag or
multiple relative teleport flags.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RelativeFlag
Added with 1.21.2static final RelativeFlag
Added with 1.21.2static final RelativeFlag
Added with 1.21.2static final RelativeFlag
static final RelativeFlag
static final RelativeFlag
Added with 1.21.2static final RelativeFlag
static final RelativeFlag
static final RelativeFlag
static final RelativeFlag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand
(RelativeFlag other) combine
(RelativeFlag relativeFlag) Deprecated.int
byte
getMask()
boolean
has
(int flags) boolean
has
(RelativeFlag flag) boolean
isSet
(byte flags) Deprecated.or
(RelativeFlag other) byte
set
(byte flags, boolean relative) Deprecated.set
(int flags, boolean relative) set
(RelativeFlag flag, boolean relative)
-
Field Details
-
NONE
-
X
-
Y
-
Z
-
YAW
-
PITCH
-
DELTA_X
Added with 1.21.2 -
DELTA_Y
Added with 1.21.2 -
DELTA_Z
Added with 1.21.2 -
ROTATE_DELTA
Added with 1.21.2
-
-
Constructor Details
-
RelativeFlag
public RelativeFlag(int mask)
-
-
Method Details
-
and
-
or
-
has
-
has
public boolean has(int flags) -
set
-
set
-
combine
Deprecated. -
isSet
Deprecated. -
set
Deprecated. -
getMask
public byte getMask() -
getFullMask
public int getFullMask()
-