25 lines
685 B
Java
25 lines
685 B
Java
package me.tofaa.entitylib.meta.mobs;
|
|
|
|
import com.github.retrooper.packetevents.protocol.entity.data.EntityDataTypes;
|
|
import me.tofaa.entitylib.meta.Metadata;
|
|
import me.tofaa.entitylib.meta.types.MobMeta;
|
|
|
|
public class GhastMeta extends MobMeta {
|
|
|
|
public static final byte OFFSET = MobMeta.MAX_OFFSET;
|
|
public static final byte MAX_OFFSET = OFFSET + 1;
|
|
|
|
public GhastMeta(int entityId, Metadata metadata) {
|
|
super(entityId, metadata);
|
|
}
|
|
|
|
|
|
public boolean isAttacking() {
|
|
return super.metadata.getIndex(OFFSET, false);
|
|
}
|
|
|
|
public void setAttacking(boolean value) {
|
|
super.metadata.setIndex(OFFSET, EntityDataTypes.BOOLEAN, value);
|
|
}
|
|
|
|
}
|