Add tickFrozen entity metadata

This commit is contained in:
TheMode 2021-05-31 18:05:01 +02:00
parent fd977e05be
commit 98ccde56fb

View File

@ -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);
}