package net.glowstone.io.entity; import net.glowstone.entity.monster.GlowGuardian; import net.glowstone.util.nbt.CompoundTag; import org.bukkit.entity.EntityType; class GuardianStore extends MonsterStore<GlowGuardian> { public GuardianStore() { super(GlowGuardian.class, EntityType.GUARDIAN); } @Override public void load(GlowGuardian entity, CompoundTag compound) { super.load(entity, compound); entity.setElder(compound.getBool("Elder")); } @Override public void save(GlowGuardian entity, CompoundTag compound) { super.save(entity, compound); compound.putBool("Elder", entity.isElder()); } }