Finish lithium removal

This commit is contained in:
Bruno Rybársky 2024-05-05 13:31:46 +02:00
parent 211e658950
commit 78d61d29b6
2 changed files with 1 additions and 7 deletions

@ -1,8 +1,4 @@
package systems.brn.regexinghoppers; package systems.brn.regexinghoppers;
import me.jellysquid.mods.lithium.common.LithiumMod;
import me.jellysquid.mods.lithium.common.config.LithiumConfig;
import me.jellysquid.mods.lithium.common.config.Option;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import net.minecraft.block.entity.HopperBlockEntity; import net.minecraft.block.entity.HopperBlockEntity;
import net.minecraft.inventory.Inventory; import net.minecraft.inventory.Inventory;
@ -33,8 +29,7 @@ public class RegexingHoppers implements ModInitializer {
// Log entering the method with given parameters // Log entering the method with given parameters
LOGGER.debug("Entering shouldNotMove with itemName: {}", itemName); LOGGER.debug("Entering shouldNotMove with itemName: {}", itemName);
if (hopper instanceof NamedScreenHandlerFactory) { if (hopper instanceof NamedScreenHandlerFactory factory) {
NamedScreenHandlerFactory factory = (NamedScreenHandlerFactory) hopper;
String customName = factory.getDisplayName().getLiteralString(); String customName = factory.getDisplayName().getLiteralString();
// Log the custom name used for matching // Log the custom name used for matching

@ -3,7 +3,6 @@ package systems.brn.regexinghoppers.mixin;
import net.minecraft.block.entity.HopperBlockEntity; import net.minecraft.block.entity.HopperBlockEntity;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor; import org.spongepowered.asm.mixin.gen.Accessor;
import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(HopperBlockEntity.class) @Mixin(HopperBlockEntity.class)
public interface HopperBlockEntityAccessor { public interface HopperBlockEntityAccessor {