mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
Add tickFrozen entity metadata
This commit is contained in:
parent
fd977e05be
commit
98ccde56fb
@ -165,6 +165,14 @@ public class EntityMeta {
|
||||
this.metadata.setIndex((byte) 6, Metadata.Pose(value));
|
||||
}
|
||||
|
||||
public int getTickFrozen() {
|
||||
return this.metadata.getIndex((byte) 7, 0);
|
||||
}
|
||||
|
||||
public void setTickFrozen(int tickFrozen) {
|
||||
this.metadata.setIndex((byte) 7, Metadata.VarInt(tickFrozen));
|
||||
}
|
||||
|
||||
protected byte getMask(byte index) {
|
||||
return this.metadata.getIndex(index, (byte) 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user