Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Implemented entity.playEffect. Thanks to main--
Dieser Commit ist enthalten in:
Ursprung
743c623d53
Commit
d73c29aad7
@ -4,6 +4,7 @@ import com.google.common.collect.MapMaker;
|
|||||||
import net.minecraft.server.*;
|
import net.minecraft.server.*;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.EntityEffect;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
@ -292,6 +293,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void playEffect(EntityEffect type) {
|
||||||
|
this.getHandle().world.a(getHandle(), type.getData());
|
||||||
|
}
|
||||||
|
|
||||||
public void setHandle(final Entity entity) {
|
public void setHandle(final Entity entity) {
|
||||||
this.entity = entity;
|
this.entity = entity;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren