All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.craftbukkit.entity.CraftSlime Maven / Gradle / Ivy

package org.bukkit.craftbukkit.entity;

import net.minecraft.server.EntitySlime;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Slime;

public class CraftSlime extends CraftLivingEntity implements Slime {

  public CraftSlime(CraftServer server, EntitySlime entity) {
    super(server, entity);
  }

  public int getSize() {
    return getHandle().getSize();
  }

  public void setSize(int size) {
    getHandle().setSize(size);
  }

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

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

  public EntityType getType() {
    return EntityType.SLIME;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy