slowly going absolutely insane

This commit is contained in:
2026-01-17 19:06:46 +01:00
parent f6431ccf7d
commit 5ae383e9e3
7 changed files with 60 additions and 149 deletions
@@ -1,14 +1,9 @@
package me.youhavetrouble.quickerstacker;
import com.hypixel.hytale.server.core.event.events.ecs.UseBlockEvent;
import com.hypixel.hytale.server.core.event.events.player.PlayerInteractEvent;
import com.hypixel.hytale.server.core.event.events.player.PlayerReadyEvent;
import com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction;
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
import me.youhavetrouble.quickerstacker.interaction.ChestInteraction;
import me.youhavetrouble.quickerstacker.listener.ChestInteractListener;
import me.youhavetrouble.quickerstacker.system.QuickStackToChestSystem;
import org.checkerframework.checker.nullness.compatqual.NonNullDecl;
public class QuickerStacker extends JavaPlugin {
@@ -18,11 +13,8 @@ public class QuickerStacker extends JavaPlugin {
}
@Override
public void setup() {
this.getEventRegistry().registerGlobal(UseBlockEvent.class, ChestInteractListener::onChestInteract);
this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ChestInteractListener::playerJoin);
this.getCodecRegistry(Interaction.CODEC).register("YouHaveTrouble_QuickerStacker_QuickStackToChest", ChestInteraction.class, ChestInteraction.CODEC);
public void start() {
this.getEntityStoreRegistry().registerSystem(new QuickStackToChestSystem());
}
}