Package net.minestom.server.entity
Class Metadata
java.lang.Object
net.minestom.server.entity.Metadata
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Metadata.Entry
<Integer> BlockState
(@NotNull Integer value) static Metadata.Entry
<Boolean> Boolean
(boolean value) static Metadata.Entry
<Byte> Byte
(byte value) static Metadata.Entry
<CatMeta.Variant> CatVariant
(CatMeta.Variant value) static Metadata.Entry
<Component> static Metadata.Entry
<Direction> static Metadata.Entry
<Float> Float
(float value) static Metadata.Entry
<FrogMeta.Variant> FrogVariant
(FrogMeta.Variant value) @NotNull Map
<Integer, Metadata.Entry<?>> <T> T
getIndex
(int index, T defaultValue) static Metadata.Entry
<Long> Long
(long value) static Metadata.Entry
<org.jglrxavpok.hephaistos.nbt.NBT> NBT
(@NotNull org.jglrxavpok.hephaistos.nbt.NBT nbt) static Metadata.Entry
<Integer> OptBlockState
(@Nullable Integer value) static Metadata.Entry
<Component> static Metadata.Entry
<Point> OptPosition
(@Nullable Point value) static Metadata.Entry
<UUID> static Metadata.Entry
<Integer> static Metadata.Entry
<PaintingMeta.Variant> static Metadata.Entry
<Particle> static Metadata.Entry
<Entity.Pose> Pose
(Entity.Pose value) static Metadata.Entry
<Point> static Metadata.Entry
<float[]> Quaternion
(float @NotNull [] value) static Metadata.Entry
<Point> void
setIndex
(int index, @NotNull Metadata.Entry<?> entry) void
setNotifyAboutChanges
(boolean notifyAboutChanges) static Metadata.Entry
<ItemStack> static Metadata.Entry
<SnifferMeta.State> SnifferState
(SnifferMeta.State value) static Metadata.Entry
<String> static Metadata.Entry
<Integer> VarInt
(int value) static Metadata.Entry
<Point> static Metadata.Entry
<int[]> VillagerData
(int villagerType, int villagerProfession, int level)
-
Field Details
-
TYPE_BYTE
public static final byte TYPE_BYTE- See Also:
-
TYPE_VARINT
public static final byte TYPE_VARINT- See Also:
-
TYPE_LONG
public static final byte TYPE_LONG- See Also:
-
TYPE_FLOAT
public static final byte TYPE_FLOAT- See Also:
-
TYPE_STRING
public static final byte TYPE_STRING- See Also:
-
TYPE_CHAT
public static final byte TYPE_CHAT- See Also:
-
TYPE_OPTCHAT
public static final byte TYPE_OPTCHAT- See Also:
-
TYPE_SLOT
public static final byte TYPE_SLOT- See Also:
-
TYPE_BOOLEAN
public static final byte TYPE_BOOLEAN- See Also:
-
TYPE_ROTATION
public static final byte TYPE_ROTATION- See Also:
-
TYPE_POSITION
public static final byte TYPE_POSITION- See Also:
-
TYPE_OPTPOSITION
public static final byte TYPE_OPTPOSITION- See Also:
-
TYPE_DIRECTION
public static final byte TYPE_DIRECTION- See Also:
-
TYPE_OPTUUID
public static final byte TYPE_OPTUUID- See Also:
-
TYPE_BLOCKSTATE
public static final byte TYPE_BLOCKSTATE- See Also:
-
TYPE_OPTBLOCKSTATE
public static final byte TYPE_OPTBLOCKSTATE- See Also:
-
TYPE_NBT
public static final byte TYPE_NBT- See Also:
-
TYPE_PARTICLE
public static final byte TYPE_PARTICLE- See Also:
-
TYPE_VILLAGERDATA
public static final byte TYPE_VILLAGERDATA- See Also:
-
TYPE_OPTVARINT
public static final byte TYPE_OPTVARINT- See Also:
-
TYPE_POSE
public static final byte TYPE_POSE- See Also:
-
TYPE_CAT_VARIANT
public static final byte TYPE_CAT_VARIANT- See Also:
-
TYPE_FROG_VARIANT
public static final byte TYPE_FROG_VARIANT- See Also:
-
TYPE_OPTGLOBALPOS
public static final byte TYPE_OPTGLOBALPOS- See Also:
-
TYPE_PAINTINGVARIANT
public static final byte TYPE_PAINTINGVARIANT- See Also:
-
TYPE_SNIFFER_STATE
public static final byte TYPE_SNIFFER_STATE- See Also:
-
TYPE_VECTOR3
public static final byte TYPE_VECTOR3- See Also:
-
TYPE_QUATERNION
public static final byte TYPE_QUATERNION- See Also:
-
-
Constructor Details
-
Metadata
-
-
Method Details
-
Byte
-
VarInt
-
Long
-
Float
-
String
-
Chat
-
OptChat
-
Slot
-
Boolean
-
Rotation
-
Position
-
OptPosition
-
Direction
-
OptUUID
-
BlockState
-
OptBlockState
-
NBT
public static Metadata.Entry<org.jglrxavpok.hephaistos.nbt.NBT> NBT(@NotNull @NotNull org.jglrxavpok.hephaistos.nbt.NBT nbt) -
VillagerData
public static Metadata.Entry<int[]> VillagerData(int villagerType, int villagerProfession, int level) -
OptVarInt
-
Pose
-
CatVariant
-
FrogVariant
-
PaintingVariant
public static Metadata.Entry<PaintingMeta.Variant> PaintingVariant(@NotNull PaintingMeta.Variant value) -
SnifferState
-
Vector3
-
Quaternion
-
Particle
-
getIndex
public <T> T getIndex(int index, @Nullable T defaultValue) -
setIndex
-
setNotifyAboutChanges
public void setNotifyAboutChanges(boolean notifyAboutChanges) -
getEntries
-