geforkt von Mirrors/Paper
Add more Evoker API
== AT == public net.minecraft.world.entity.monster.Evoker setWololoTarget(Lnet/minecraft/world/entity/animal/Sheep;)V public net.minecraft.world.entity.monster.Evoker getWololoTarget()Lnet/minecraft/world/entity/animal/Sheep;
Dieser Commit ist enthalten in:
Ursprung
88335d97a8
Commit
4f4d4ac73e
@ -1,5 +1,6 @@
|
||||
package org.bukkit.craftbukkit.entity;
|
||||
|
||||
import net.minecraft.world.entity.animal.Sheep;
|
||||
import net.minecraft.world.entity.monster.SpellcasterIllager;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Evoker;
|
||||
@ -29,4 +30,17 @@ public class CraftEvoker extends CraftSpellcaster implements Evoker {
|
||||
public void setCurrentSpell(Evoker.Spell spell) {
|
||||
this.getHandle().setIsCastingSpell(spell == null ? SpellcasterIllager.IllagerSpell.NONE : SpellcasterIllager.IllagerSpell.byId(spell.ordinal()));
|
||||
}
|
||||
|
||||
// Paper start - Add more Evoker API
|
||||
@Override
|
||||
public org.bukkit.entity.Sheep getWololoTarget() {
|
||||
Sheep sheep = getHandle().getWololoTarget();
|
||||
return sheep == null ? null : (org.bukkit.entity.Sheep) sheep.getBukkitEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setWololoTarget(org.bukkit.entity.Sheep sheep) {
|
||||
getHandle().setWololoTarget(sheep == null ? null : ((org.bukkit.craftbukkit.entity.CraftSheep) sheep).getHandle());
|
||||
}
|
||||
// Paper end - Add more Evoker API
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren