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
FieldsModifier and TypeFieldDescriptionstatic final RelativeFlagAdded with 1.21.2static final RelativeFlagAdded with 1.21.2static final RelativeFlagAdded with 1.21.2static final RelativeFlagstatic final RelativeFlagstatic final RelativeFlagAdded with 1.21.2static final RelativeFlagstatic final RelativeFlagstatic final RelativeFlagstatic final RelativeFlag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(RelativeFlag other) combine(RelativeFlag relativeFlag) Deprecated.intbytegetMask()booleanhas(int flags) booleanhas(RelativeFlag flag) booleanisSet(byte flags) Deprecated.or(RelativeFlag other) byteset(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()
-