Skip to content

Commit 35cf255

Browse files
committed
spotless
1 parent 309c217 commit 35cf255

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/main/java/de/mari_023/ae2wtlib/mixin/ServerPlayerGameModeMixin.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
package de.mari_023.ae2wtlib.mixin;
22

3-
import de.mari_023.ae2wtlib.AE2wtlibEvents;
3+
import org.spongepowered.asm.mixin.Mixin;
4+
import org.spongepowered.asm.mixin.injection.At;
5+
import org.spongepowered.asm.mixin.injection.Inject;
6+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
7+
48
import net.minecraft.server.level.ServerPlayer;
59
import net.minecraft.server.level.ServerPlayerGameMode;
610
import net.minecraft.world.InteractionHand;
711
import net.minecraft.world.InteractionResult;
812
import net.minecraft.world.item.ItemStack;
913
import net.minecraft.world.level.Level;
1014
import net.minecraft.world.phys.BlockHitResult;
11-
import org.spongepowered.asm.mixin.Mixin;
12-
import org.spongepowered.asm.mixin.injection.At;
13-
import org.spongepowered.asm.mixin.injection.Inject;
14-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
15+
16+
import de.mari_023.ae2wtlib.AE2wtlibEvents;
1517

1618
@Mixin(ServerPlayerGameMode.class)
1719
public class ServerPlayerGameModeMixin {
18-
1920
@Inject(method = "useItemOn", at = @At(value = "RETURN"))
20-
private static void handle(ServerPlayer player, Level level, ItemStack original, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir) {
21+
private static void handle(ServerPlayer player, Level level, ItemStack original, InteractionHand hand,
22+
BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir) {
2123
AE2wtlibEvents.restock(player, original.copy(), player.getItemInHand(hand).getCount(),
2224
(stack -> player.setItemInHand(hand, stack)));
2325
}

0 commit comments

Comments
 (0)