Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
SPIGOT-3629: Greatly expand entity effect API
Dieser Commit ist enthalten in:
Ursprung
2fae23c251
Commit
c3047a5df7
@ -436,9 +436,14 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||
return entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playEffect(EntityEffect type) {
|
||||
Preconditions.checkArgument(type != null, "type");
|
||||
|
||||
if (this.getClass().isAssignableFrom(type.getApplicable())) {
|
||||
this.getHandle().world.broadcastEntityEffect(getHandle(), type.getData());
|
||||
}
|
||||
}
|
||||
|
||||
public void setHandle(final Entity entity) {
|
||||
this.entity = entity;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren