Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wither bosses #67

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/no/runsafe/framework/api/entity/IWitherBoss.java

This file was deleted.

5 changes: 5 additions & 0 deletions src/no/runsafe/framework/api/entity/monsters/IWitherBoss.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package no.runsafe.framework.api.entity.monsters;

public interface IWitherBoss extends IMonster
{
}
6 changes: 3 additions & 3 deletions src/no/runsafe/framework/internal/wrapper/ObjectWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,6 @@ 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 Expand Up @@ -530,6 +527,9 @@ public static RunsafeMonster convert(org.bukkit.entity.Monster toWrap)
if (toWrap instanceof Silverfish)
return new RunsafeSilverfish((Silverfish) toWrap);

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

return new RunsafeMonster(toWrap);
}

Expand Down
16 changes: 0 additions & 16 deletions src/no/runsafe/framework/minecraft/entity/RunsafeWitherBoss.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package no.runsafe.framework.minecraft.entity.monsters;

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

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

Wither wither;
}