Skip to content

Commit

Permalink
Make all mixins abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
Rektroth committed Apr 25, 2024
1 parent 6978917 commit 1ca6e0a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package io.github.rektroth.whiteout.mixin.block;public class AzaleaBlockMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(VillagerTaskListProvider.class)
public class VillagerTaskListProviderMixin {
public abstract class VillagerTaskListProviderMixin {
@Redirect(
at = @At(
target = "Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;create(FZI)Lnet/minecraft/entity/ai/brain/task/Task;",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(WolfBegGoal.class)
public class WolfBegGoalMixin {
public abstract class WolfBegGoalMixin {
@Redirect(
at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/passive/WolfEntity;isTamed()Z"),
method = "isAttractive(Lnet/minecraft/entity/player/PlayerEntity;)Z")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(EnderDragonFight.class)
public class EnderDragonFightMixin {
public abstract class EnderDragonFightMixin {
@Inject(at = @At("TAIL"), method = "updateFight(Lnet/minecraft/entity/boss/dragon/EnderDragonEntity;)V")
private void fixedCustomNameCheck(EnderDragonEntity dragon, CallbackInfo ci) {
ServerBossBar bossBar = ((EnderDragonFightAccessor)this).getBossBar();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.function.Supplier;

@Mixin(DeOpCommand.class)
public class DeOpCommandMixin {
public abstract class DeOpCommandMixin {
@Redirect(
at = @At(
value = "INVOKE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.function.Supplier;

@Mixin(OpCommand.class)
public class OpCommandMixin {
public abstract class OpCommandMixin {
@Redirect(
at = @At(
value = "INVOKE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Set;

@Mixin(Explosion.class)
public class ExplosionMixin {
public abstract class ExplosionMixin {
@Inject(
at = @At(
value = "INVOKE",
Expand Down

0 comments on commit 1ca6e0a

Please sign in to comment.