mirror of
https://github.com/YouHaveTrouble/QuickerStacker.git
synced 2026-05-12 14:16:56 +00:00
slowly going absolutely insane
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user