update to sun 1.1.3
This commit is contained in:
parent
01191fca8b
commit
95313f8ef8
4 changed files with 12 additions and 9 deletions
|
@ -15,6 +15,6 @@ archives_base_name=sun-addon-template
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.102.0+1.21.1
|
fabric_version=0.102.0+1.21.1
|
||||||
sun_version=1.1.2
|
sun_version=1.1.3
|
||||||
orbit_version=0.2.4
|
orbit_version=0.2.4
|
||||||
norbit_version=1.2.0
|
norbit_version=1.2.0
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
package com.example;
|
package com.example;
|
||||||
|
|
||||||
import com.mojang.logging.LogUtils;
|
import com.mojang.logging.LogUtils;
|
||||||
import dev.shrecked.sun.components.*;
|
import dev.shrecked.sun.components.SunAddonInitializer;
|
||||||
import dev.shrecked.sun.components.Module;
|
import dev.shrecked.sun.components.command.Command;
|
||||||
|
import dev.shrecked.sun.components.command.CommandRegistry;
|
||||||
|
import dev.shrecked.sun.components.module.Module;
|
||||||
|
import dev.shrecked.sun.components.module.ModuleRegistry;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
import java.lang.invoke.MethodHandles;
|
import java.lang.invoke.MethodHandles;
|
||||||
|
|
|
@ -2,7 +2,7 @@ package com.example.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.StringArgumentType;
|
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import dev.shrecked.sun.components.Command;
|
import dev.shrecked.sun.components.command.Command;
|
||||||
import dev.shrecked.sun.util.ChatUtil;
|
import dev.shrecked.sun.util.ChatUtil;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package com.example.modules;
|
package com.example.modules;
|
||||||
|
|
||||||
import com.example.ExampleAddon;
|
import com.example.ExampleAddon;
|
||||||
import dev.shrecked.sun.components.Category;
|
import dev.shrecked.sun.components.event.Events;
|
||||||
import dev.shrecked.sun.components.Event;
|
import dev.shrecked.sun.components.module.Category;
|
||||||
import dev.shrecked.sun.components.Module;
|
import dev.shrecked.sun.components.module.Module;
|
||||||
import dev.shrecked.sun.components.settings.StringSetting;
|
import dev.shrecked.sun.components.setting.settings.StringSetting;
|
||||||
import meteordevelopment.orbit.EventHandler;
|
import meteordevelopment.orbit.EventHandler;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ public class ExampleModule extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
private void onHudRender(Event.HudRender event) {
|
private void onHudRender(Events.HudRender event) {
|
||||||
event.context().drawText(
|
event.context().drawText(
|
||||||
MinecraftClient.getInstance().textRenderer,
|
MinecraftClient.getInstance().textRenderer,
|
||||||
this.text.getValue(),
|
this.text.getValue(),
|
||||||
|
|
Loading…
Reference in a new issue