Skip to content

Commit

Permalink
Merge pull request #65 from DeveloperDeborah/master
Browse files Browse the repository at this point in the history
Add wither boss interface
  • Loading branch information
mortenn authored Jan 8, 2024
2 parents 6cb4b41 + c928b42 commit 912159e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/no/runsafe/framework/api/entity/IWitherBoss.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package no.runsafe.framework.api.entity;

public interface IWitherBoss extends ILivingEntity
{
}
3 changes: 3 additions & 0 deletions src/no/runsafe/framework/internal/wrapper/ObjectWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ public static RunsafeLivingEntity convert(org.bukkit.entity.LivingEntity toWrap)
if (toWrap instanceof EnderDragon)
return new RunsafeEnderDragon((EnderDragon) toWrap);

if (toWrap instanceof Wither)
return new RunsafeWitherBoss((Wither) toWrap);

return new RunsafeLivingEntity(toWrap);
}

Expand Down
16 changes: 16 additions & 0 deletions src/no/runsafe/framework/minecraft/entity/RunsafeWitherBoss.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package no.runsafe.framework.minecraft.entity;

import no.runsafe.framework.api.entity.IWitherBoss;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Wither;

public class RunsafeWitherBoss extends RunsafeLivingEntity implements IWitherBoss
{
public RunsafeWitherBoss(Wither toWrap)
{
super(toWrap);
wither = toWrap;
}

Wither wither;
}

0 comments on commit 912159e

Please sign in to comment.