Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Reject @Overwrite, return to interface #2

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package net.legacyfabric.abstractmethods.mixin;

import net.minecraft.entity.boss.BossBarProvider;
import net.minecraft.entity.boss.dragon.EnderDragonEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.text.Text;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(EnderDragonEntity.class)
public abstract class EnderDragonEntityMixin extends MobEntity implements BossBarProvider {
public EnderDragonEntityMixin(World world) {
super(world);
}

@Override
public Text title() {
return getName();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package net.legacyfabric.abstractmethods.mixin;

import net.minecraft.entity.boss.BossBarProvider;
import net.minecraft.entity.boss.WitherEntity;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.text.Text;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(WitherEntity.class)
public abstract class WitherEntityMixin extends HostileEntity implements BossBarProvider {
public WitherEntityMixin(World world) {
super(world);
}

@Override
public Text title() {
return getName();
}
}

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 3 additions & 4 deletions src/main/resources/abstractmethods.mixins.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"required": true,
"package": "net.legacyfabric.mixin",
"package": "net.legacyfabric.abstractmethods.mixin",
"compatibilityLevel": "JAVA_8",
"injectors": {
"defaultRequire": 1
},
"mixins": [
"client.bossbar.BossBarMixin",
"client.bossbar.EnderDragonEntityRendererMixin",
"client.bossbar.WitherEntityRendererMixin"
"EnderDragonEntityMixin",
"WitherEntityMixin"
]
}