/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftBat.java
package org.bukkit.craftbukkit.entity;

import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Bat;
import org.bukkit.entity.EntityType;

import net.minecraft.server.EntityBat;

public class CraftBat extends CraftAmbient implements Bat {
	public CraftBat(CraftServer server, EntityBat entity) {
		super(server, entity);
	}

	@Override
	public EntityBat getHandle() {
		return (EntityBat) entity;
	}

	@Override
	public String toString() {
		return "CraftBat";
	}

	@Override
	public EntityType getType() {
		return EntityType.BAT;
	}

	@Override
	public boolean isAwake() {
		return !getHandle().isAsleep();
	}

	@Override
	public void setAwake(boolean state) {
		getHandle().setAsleep(!state);
	}
}
