mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Added villager data metadata
This commit is contained in:
parent
b6cce091e8
commit
cb41b2e3d7
@ -87,6 +87,16 @@ public class Metadata {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Value<int[]> VillagerData(int villagerType,
|
||||||
|
int villagerProfession,
|
||||||
|
int level) {
|
||||||
|
return new Value<>(TYPE_VILLAGERDATA, new int[]{villagerType, villagerProfession, level}, writer -> {
|
||||||
|
writer.writeVarInt(villagerType);
|
||||||
|
writer.writeVarInt(villagerProfession);
|
||||||
|
writer.writeVarInt(level);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public static Value<Entity.Pose> Pose(@NotNull Entity.Pose value) {
|
public static Value<Entity.Pose> Pose(@NotNull Entity.Pose value) {
|
||||||
return new Value<>(TYPE_POSE, value, writer -> writer.writeVarInt(value.ordinal()));
|
return new Value<>(TYPE_POSE, value, writer -> writer.writeVarInt(value.ordinal()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user