geforkt von Mirrors/Paper
SPIGOT-3629: Greatly expand entity effect API
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
f7d75ce15b
Commit
8e873a6220
@ -436,8 +436,13 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void playEffect(EntityEffect type) {
|
public void playEffect(EntityEffect type) {
|
||||||
this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData());
|
Preconditions.checkArgument(type != null, "type");
|
||||||
|
|
||||||
|
if (this.getClass().isAssignableFrom(type.getApplicable())) {
|
||||||
|
this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHandle(final Entity entity) {
|
public void setHandle(final Entity entity) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren