org.bukkit.craftbukkit.entity.CraftExperienceOrb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityExperienceOrb;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.ExperienceOrb;
public class CraftExperienceOrb extends CraftEntity implements ExperienceOrb {
public CraftExperienceOrb(CraftServer server, EntityExperienceOrb entity) {
super(server, entity);
}
public int getExperience() {
return getHandle().value;
}
public void setExperience(int value) {
getHandle().value = value;
}
@Override
public EntityExperienceOrb getHandle() {
return (EntityExperienceOrb) entity;
}
@Override
public String toString() {
return "CraftExperienceOrb";
}
public EntityType getType() {
return EntityType.EXPERIENCE_ORB;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy