[CHORE] Cleanup API's that's unused by any mod currently

This commit is contained in:
2024-01-01 21:42:14 +02:00
parent 8aa8c3b62c
commit 8b4172cfef
125 changed files with 194 additions and 3355 deletions

View File

@@ -1,49 +0,0 @@
package com.hypherionmc.craterlib.api.event.client;
import com.hypherionmc.craterlib.core.event.CraterEvent;
import net.minecraft.client.color.block.BlockColors;
import net.minecraft.client.color.item.ItemColors;
/**
* @author HypherionSA
* A wrapped event to allow Block and Item Color Registration
*/
public class ColorRegistrationEvent {
public static class Blocks extends CraterEvent {
private final BlockColors colors;
public Blocks(BlockColors colors) {
this.colors = colors;
}
public BlockColors getColors() {
return colors;
}
@Override
public boolean canCancel() {
return false;
}
}
public static class Items extends CraterEvent {
private final ItemColors colors;
public Items(ItemColors colors) {
this.colors = colors;
}
public ItemColors getColors() {
return colors;
}
@Override
public boolean canCancel() {
return false;
}
}
}

View File

@@ -5,15 +5,15 @@ import com.mojang.realmsclient.dto.RealmsServer;
public class PlayerJoinRealmEvent extends CraterEvent {
private final RealmsServer server;
private final RealmsServer server;
public PlayerJoinRealmEvent(RealmsServer server) {
this.server = server;
}
public PlayerJoinRealmEvent(RealmsServer server) {
this.server = server;
}
public RealmsServer getServer() {
return server;
}
public RealmsServer getServer() {
return server;
}
@Override
public boolean canCancel() {

View File

@@ -17,14 +17,14 @@ public class CraterServerChatEvent extends CraterEvent {
this.component = component;
}
public void setComponent(Component component) {
this.component = component;
}
public Component getComponent() {
return component;
}
public void setComponent(Component component) {
this.component = component;
}
public String getUsername() {
return username;
}

View File

@@ -5,7 +5,8 @@ import net.minecraft.server.MinecraftServer;
public class CraterServerLifecycleEvent extends CraterEvent {
public CraterServerLifecycleEvent() {}
public CraterServerLifecycleEvent() {
}
@Override
public boolean canCancel() {
@@ -27,19 +28,22 @@ public class CraterServerLifecycleEvent extends CraterEvent {
public static class Started extends CraterServerLifecycleEvent {
public Started() {}
public Started() {
}
}
public static class Stopping extends CraterServerLifecycleEvent {
public Stopping() {}
public Stopping() {
}
}
public static class Stopped extends CraterServerLifecycleEvent {
public Stopped() {}
public Stopped() {
}
}
}