mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
Implemented entity.playEffect. Thanks to main--
This commit is contained in:
parent
743c623d53
commit
d73c29aad7
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ import com.google.common.collect.MapMaker;
|
|||
import net.minecraft.server.*;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.EntityEffect;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
|
@ -292,6 +293,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
return entity;
|
||||
}
|
||||
|
||||
public void playEffect(EntityEffect type) {
|
||||
this.getHandle().world.a(getHandle(), type.getData());
|
||||
}
|
||||
|
||||
public void setHandle(final Entity entity) {
|
||||
this.entity = entity;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue