Skip to content

Commit

Permalink
Mark other mixins abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Iron-Cheems committed Aug 17, 2024
1 parent e379997 commit f6c2c9b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(BundleItem.class)
public class BundleItemMixin {
public abstract class BundleItemMixin {
@ModifyExpressionValue(method = "getTooltipData", at = @At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;contains(Lnet/minecraft/component/ComponentType;)Z", ordinal = 0))
private boolean modifyContains1(boolean original) {
BetterTooltips bt = Modules.get().get(BetterTooltips.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(DyedColorComponent.class)
public class DyedColorComponentMixin {
public abstract class DyedColorComponentMixin {
@ModifyExpressionValue(method = "appendTooltip", at = @At(value = "FIELD", target = "Lnet/minecraft/component/type/DyedColorComponent;showInTooltip:Z"))
private boolean modifyShowInTooltip(boolean original) {
BetterTooltips bt = Modules.get().get(BetterTooltips.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(ItemEnchantmentsComponent.class)
public class ItemEnchantmentsComponentMixin {
public abstract class ItemEnchantmentsComponentMixin {
@ModifyExpressionValue(method = "appendTooltip", at = @At(value = "FIELD", target = "Lnet/minecraft/component/type/ItemEnchantmentsComponent;showInTooltip:Z"))
private boolean modifyShowInTooltip(boolean original) {
BetterTooltips bt = Modules.get().get(BetterTooltips.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(ItemGroups.class)
public class ItemGroupsMixin {
public abstract class ItemGroupsMixin {
@ModifyReturnValue(method = "updateDisplayContext", at = @At("RETURN"))
private static boolean modifyReturn(boolean original) {
return original || Modules.get().get(BetterTooltips.class).updateTooltips();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(UnbreakableComponent.class)
public class UnbreakableComponentMixin {
public abstract class UnbreakableComponentMixin {
@ModifyExpressionValue(method = "appendTooltip", at = @At(value = "FIELD", target = "Lnet/minecraft/component/type/UnbreakableComponent;showInTooltip:Z"))
private boolean modifyShowInTooltip(boolean original) {
BetterTooltips bt = Modules.get().get(BetterTooltips.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(value = LithiumEntityCollisions.class)
public class LithiumEntityCollisionsMixin {
public abstract class LithiumEntityCollisionsMixin {
@Inject(method = "isWithinWorldBorder", at = @At("HEAD"), cancellable = true)
private static void onIsWithinWorldBorder(WorldBorder border, Box box, CallbackInfoReturnable<Boolean> cir) {
if (Modules.get().get(Collisions.class).ignoreBorder()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.spongepowered.asm.mixin.injection.At;

@Mixin(GeneralSettings.class)
public class GeneralSettingsMixin {
public abstract class GeneralSettingsMixin {
// specifies the '2' value on this line:
// public final ModeSetting multiplayerScreenButtonOrientation = new ModeSetting(this, Text.translatable("general_settings.viafabricplus.multiplayer_screen_button_orientation"), 2, ORIENTATION_OPTIONS);
@ModifyExpressionValue(method = "<init>", at = @At(value = "CONSTANT", args = "intValue=2", ordinal = 1), remap = false)
Expand Down

0 comments on commit f6c2c9b

Please sign in to comment.