Changed name to Simple Transport HUD
@@ -7,7 +7,7 @@ loader_version=0.18.4
|
|||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0+1.21.11
|
mod_version=1.0+1.21.11
|
||||||
maven_group=com.lukasabbe
|
maven_group=com.lukasabbe
|
||||||
archives_base_name=SimpleHud
|
archives_base_name=SimpleTransportHud
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.141.3+1.21.11
|
fabric_version=0.141.3+1.21.11
|
||||||
mod_menu_version=17.0.0-alpha.1
|
mod_menu_version=17.0.0-alpha.1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud;
|
package com.lukasabbe.simpletransporthud;
|
||||||
|
|
||||||
import net.minecraft.resources.Identifier;
|
import net.minecraft.resources.Identifier;
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public final static String MOD_ID = "simplehud";
|
public final static String MOD_ID = "simpletransporthud";
|
||||||
//Config
|
//Config
|
||||||
public final static Identifier ConfigIdentifier = Identifier.fromNamespaceAndPath(MOD_ID, "config");
|
public final static Identifier ConfigIdentifier = Identifier.fromNamespaceAndPath(MOD_ID, "config");
|
||||||
//Hud:s
|
//Hud:s
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
package com.lukasabbe.simplehud;
|
package com.lukasabbe.simpletransporthud;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.config.Config;
|
import com.lukasabbe.simpletransporthud.config.Config;
|
||||||
import com.lukasabbe.simplehud.huds.BoatHud;
|
import com.lukasabbe.simpletransporthud.huds.BoatHud;
|
||||||
import com.lukasabbe.simplehud.huds.ElytraHud;
|
import com.lukasabbe.simpletransporthud.huds.ElytraHud;
|
||||||
import com.lukasabbe.simplehud.huds.MinecartHud;
|
import com.lukasabbe.simpletransporthud.huds.MinecartHud;
|
||||||
import com.lukasabbe.simplehud.huds.SimpleHud;
|
import com.lukasabbe.simpletransporthud.huds.SimpleHud;
|
||||||
import com.lukasabbe.simplehud.tools.ElytraTools;
|
import com.lukasabbe.simpletransporthud.tools.ElytraTools;
|
||||||
import com.lukasabbe.simplehud.tools.EntityTools;
|
import com.lukasabbe.simpletransporthud.tools.EntityTools;
|
||||||
import net.fabricmc.api.ClientModInitializer;
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
|
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
|
||||||
@@ -16,7 +16,7 @@ import net.minecraft.client.gui.GuiGraphics;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class SimpleHudMod implements ClientModInitializer {
|
public class SimpleTransportHudMod implements ClientModInitializer {
|
||||||
|
|
||||||
public static List<SimpleHud> HUD_LIST = Arrays.asList(
|
public static List<SimpleHud> HUD_LIST = Arrays.asList(
|
||||||
new ElytraHud(),
|
new ElytraHud(),
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.lukasabbe.simplehud.config;
|
package com.lukasabbe.simpletransporthud.config;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.Constants;
|
import com.lukasabbe.simpletransporthud.Constants;
|
||||||
import dev.isxander.yacl3.config.v2.api.ConfigClassHandler;
|
import dev.isxander.yacl3.config.v2.api.ConfigClassHandler;
|
||||||
import dev.isxander.yacl3.config.v2.api.SerialEntry;
|
import dev.isxander.yacl3.config.v2.api.SerialEntry;
|
||||||
import dev.isxander.yacl3.config.v2.api.serializer.GsonConfigSerializerBuilder;
|
import dev.isxander.yacl3.config.v2.api.serializer.GsonConfigSerializerBuilder;
|
||||||
@@ -15,7 +15,7 @@ public class Config {
|
|||||||
.id(Constants.ConfigIdentifier)
|
.id(Constants.ConfigIdentifier)
|
||||||
.serializer(config -> GsonConfigSerializerBuilder
|
.serializer(config -> GsonConfigSerializerBuilder
|
||||||
.create(config)
|
.create(config)
|
||||||
.setPath(YACLPlatform.getConfigDir().resolve("simple_hud_config.json5"))
|
.setPath(YACLPlatform.getConfigDir().resolve("simple_transport_hud_config.json5"))
|
||||||
.build())
|
.build())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.config;
|
package com.lukasabbe.simpletransporthud.config;
|
||||||
|
|
||||||
import dev.isxander.yacl3.api.NameableEnum;
|
import dev.isxander.yacl3.api.NameableEnum;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
@@ -12,6 +12,6 @@ public enum HudPosition implements NameableEnum {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component getDisplayName() {
|
public Component getDisplayName() {
|
||||||
return Component.translatable("simple_hud.config.position." + name().toLowerCase());
|
return Component.translatable("simple_transport_hud.config.position." + name().toLowerCase());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.config;
|
package com.lukasabbe.simpletransporthud.config;
|
||||||
|
|
||||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||||
@@ -20,23 +20,23 @@ public class ModMenu implements ModMenuApi {
|
|||||||
Config instance = Config.HANDLER.instance();
|
Config instance = Config.HANDLER.instance();
|
||||||
return YetAnotherConfigLib
|
return YetAnotherConfigLib
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.title(Component.translatable("simple_hud.config.title"))
|
.title(Component.translatable("simple_transport_hud.config.title"))
|
||||||
.category(ConfigCategory
|
.category(ConfigCategory
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.general.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.general.name"))
|
||||||
.tooltip(Component.translatable("simple_hud.config.category.general.tooltip"))
|
.tooltip(Component.translatable("simple_transport_hud.config.category.general.tooltip"))
|
||||||
.group(toggleOptions())
|
.group(toggleOptions())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<Integer>createBuilder()
|
.<Integer>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.general.option.scale.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.general.option.scale.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.general.option.scale.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.general.option.scale.description")))
|
||||||
.binding(10, () -> instance.hudScale, newVal -> instance.hudScale = newVal)
|
.binding(10, () -> instance.hudScale, newVal -> instance.hudScale = newVal)
|
||||||
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0,20).step(1))
|
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0,20).step(1))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<Boolean>createBuilder()
|
.<Boolean>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.general.option.safe_area.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.general.option.safe_area.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.general.option.safe_area.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.general.option.safe_area.description")))
|
||||||
.binding(false, () -> instance.ignoreSafeArea, newVal -> instance.ignoreSafeArea = newVal)
|
.binding(false, () -> instance.ignoreSafeArea, newVal -> instance.ignoreSafeArea = newVal)
|
||||||
.controller(TickBoxControllerBuilder::create)
|
.controller(TickBoxControllerBuilder::create)
|
||||||
.build())
|
.build())
|
||||||
@@ -44,76 +44,76 @@ public class ModMenu implements ModMenuApi {
|
|||||||
)
|
)
|
||||||
.category(ConfigCategory
|
.category(ConfigCategory
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.name"))
|
||||||
.option(Option
|
.option(Option
|
||||||
.<SpeedEnum>createBuilder()
|
.<SpeedEnum>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.description")))
|
||||||
.binding(SpeedEnum.kmh, () -> instance.speedEnumElytra, newVal -> instance.speedEnumElytra = newVal)
|
.binding(SpeedEnum.kmh, () -> instance.speedEnumElytra, newVal -> instance.speedEnumElytra = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<HudPosition>createBuilder()
|
.<HudPosition>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.description")))
|
||||||
.binding(HudPosition.CENTER, () -> instance.hudPositionElytra, newVal -> instance.hudPositionElytra = newVal)
|
.binding(HudPosition.CENTER, () -> instance.hudPositionElytra, newVal -> instance.hudPositionElytra = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<Integer>createBuilder()
|
.<Integer>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.description")))
|
||||||
.binding(2, () -> instance.elytraHudDelay, newVal -> instance.elytraHudDelay = newVal)
|
.binding(2, () -> instance.elytraHudDelay, newVal -> instance.elytraHudDelay = newVal)
|
||||||
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
||||||
.build())
|
.build())
|
||||||
.build())
|
.build())
|
||||||
.category(ConfigCategory
|
.category(ConfigCategory
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.boat_hud.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.boat_hud.name"))
|
||||||
.option(Option
|
.option(Option
|
||||||
.<SpeedEnum>createBuilder()
|
.<SpeedEnum>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.description")))
|
||||||
.binding(SpeedEnum.kmh, () -> instance.speedEnumBoat, newVal -> instance.speedEnumBoat = newVal)
|
.binding(SpeedEnum.kmh, () -> instance.speedEnumBoat, newVal -> instance.speedEnumBoat = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<HudPosition>createBuilder()
|
.<HudPosition>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.description")))
|
||||||
.binding(HudPosition.CENTER, () -> instance.hudPositionBoat, newVal -> instance.hudPositionBoat = newVal)
|
.binding(HudPosition.CENTER, () -> instance.hudPositionBoat, newVal -> instance.hudPositionBoat = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<Integer>createBuilder()
|
.<Integer>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.description")))
|
||||||
.binding(2, () -> instance.boatHudDelay, newVal -> instance.boatHudDelay = newVal)
|
.binding(0, () -> instance.boatHudDelay, newVal -> instance.boatHudDelay = newVal)
|
||||||
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
||||||
.build())
|
.build())
|
||||||
.build())
|
.build())
|
||||||
.category(ConfigCategory
|
.category(ConfigCategory
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.minecart_hud.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.minecart_hud.name"))
|
||||||
.option(Option
|
.option(Option
|
||||||
.<SpeedEnum>createBuilder()
|
.<SpeedEnum>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.speed_enum.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.speed_enum.description")))
|
||||||
.binding(SpeedEnum.kmh, () -> instance.speedEnumMinecart, newVal -> instance.speedEnumMinecart = newVal)
|
.binding(SpeedEnum.kmh, () -> instance.speedEnumMinecart, newVal -> instance.speedEnumMinecart = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
.customController(opt -> new EnumController<>(opt, SpeedEnum.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<HudPosition>createBuilder()
|
.<HudPosition>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.hud_position.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.hud_position.description")))
|
||||||
.binding(HudPosition.CENTER, () -> instance.hudPositionMinecart, newVal -> instance.hudPositionMinecart = newVal)
|
.binding(HudPosition.CENTER, () -> instance.hudPositionMinecart, newVal -> instance.hudPositionMinecart = newVal)
|
||||||
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
.customController(opt -> new EnumController<>(opt, HudPosition.class))
|
||||||
.build())
|
.build())
|
||||||
.option(Option
|
.option(Option
|
||||||
.<Integer>createBuilder()
|
.<Integer>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.name"))
|
.name(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.elytra_options.option.delay_hud.description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.elytra_options.option.delay_hud.description")))
|
||||||
.binding(2, () -> instance.minecartHudDelay, newVal -> instance.minecartHudDelay = newVal)
|
.binding(0, () -> instance.minecartHudDelay, newVal -> instance.minecartHudDelay = newVal)
|
||||||
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
.controller(opt -> IntegerSliderControllerBuilder.create(opt).range(0, 30).step(1))
|
||||||
.build())
|
.build())
|
||||||
.build())
|
.build())
|
||||||
@@ -123,15 +123,15 @@ public class ModMenu implements ModMenuApi {
|
|||||||
private OptionGroup toggleOptions(){
|
private OptionGroup toggleOptions(){
|
||||||
var builder = OptionGroup
|
var builder = OptionGroup
|
||||||
.createBuilder()
|
.createBuilder()
|
||||||
.name( Component.translatable("simple_hud.config.category.general.group.activated_huds.name"))
|
.name( Component.translatable("simple_transport_hud.config.category.general.group.activated_huds.name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.general.group.activated_huds.description")));
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.general.group.activated_huds.description")));
|
||||||
|
|
||||||
Config instance = Config.HANDLER.instance();
|
Config instance = Config.HANDLER.instance();
|
||||||
for(var transport : instance.HudActivatedList.entrySet()){
|
for(var transport : instance.HudActivatedList.entrySet()){
|
||||||
builder.option(Option
|
builder.option(Option
|
||||||
.<Boolean>createBuilder()
|
.<Boolean>createBuilder()
|
||||||
.name(Component.translatable("simple_hud.config.category.general.group.activated_huds.option." + transport.getKey().split(":")[1] + ".name"))
|
.name(Component.translatable("simple_transport_hud.config.category.general.group.activated_huds.option." + transport.getKey().split(":")[1] + ".name"))
|
||||||
.description(OptionDescription.of(Component.translatable("simple_hud.config.category.general.group.activated_huds.option." + transport.getKey().split(":")[1] + ".description")))
|
.description(OptionDescription.of(Component.translatable("simple_transport_hud.config.category.general.group.activated_huds.option." + transport.getKey().split(":")[1] + ".description")))
|
||||||
.binding(true, transport::getValue, newVal -> instance.HudActivatedList.put(transport.getKey(), newVal))
|
.binding(true, transport::getValue, newVal -> instance.HudActivatedList.put(transport.getKey(), newVal))
|
||||||
.controller(TickBoxControllerBuilder::create)
|
.controller(TickBoxControllerBuilder::create)
|
||||||
.build()
|
.build()
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.config;
|
package com.lukasabbe.simpletransporthud.config;
|
||||||
|
|
||||||
import dev.isxander.yacl3.api.NameableEnum;
|
import dev.isxander.yacl3.api.NameableEnum;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
@@ -9,6 +9,6 @@ public enum SpeedEnum implements NameableEnum {
|
|||||||
ms;
|
ms;
|
||||||
@Override
|
@Override
|
||||||
public Component getDisplayName() {
|
public Component getDisplayName() {
|
||||||
return Component.translatable("simple_hud.config.speed_enum." + name().toLowerCase());
|
return Component.translatable("simple_transport_hud.config.speed_enum." + name().toLowerCase());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.Constants;
|
import com.lukasabbe.simpletransporthud.Constants;
|
||||||
import com.lukasabbe.simplehud.config.Config;
|
import com.lukasabbe.simpletransporthud.config.Config;
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import com.lukasabbe.simplehud.tools.ElytraTools;
|
import com.lukasabbe.simpletransporthud.tools.EntityTools;
|
||||||
import com.lukasabbe.simplehud.tools.EntityTools;
|
|
||||||
import net.minecraft.client.DeltaTracker;
|
import net.minecraft.client.DeltaTracker;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.renderer.RenderPipelines;
|
import net.minecraft.client.renderer.RenderPipelines;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.Constants;
|
import com.lukasabbe.simpletransporthud.Constants;
|
||||||
import com.lukasabbe.simplehud.config.Config;
|
import com.lukasabbe.simpletransporthud.config.Config;
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import com.lukasabbe.simplehud.tools.ElytraTools;
|
import com.lukasabbe.simpletransporthud.tools.ElytraTools;
|
||||||
import net.minecraft.client.DeltaTracker;
|
import net.minecraft.client.DeltaTracker;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.renderer.RenderPipelines;
|
import net.minecraft.client.renderer.RenderPipelines;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import net.minecraft.resources.Identifier;
|
import net.minecraft.resources.Identifier;
|
||||||
|
|
||||||
public class HappyGhastHud extends RideableHud{
|
public class HappyGhastHud extends RideableHud{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import net.minecraft.resources.Identifier;
|
import net.minecraft.resources.Identifier;
|
||||||
|
|
||||||
public class HorseHud extends RideableHud {
|
public class HorseHud extends RideableHud {
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.Constants;
|
import com.lukasabbe.simpletransporthud.Constants;
|
||||||
import com.lukasabbe.simplehud.config.Config;
|
import com.lukasabbe.simpletransporthud.config.Config;
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import com.lukasabbe.simplehud.tools.EntityTools;
|
import com.lukasabbe.simpletransporthud.tools.EntityTools;
|
||||||
import net.minecraft.client.DeltaTracker;
|
import net.minecraft.client.DeltaTracker;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
import net.minecraft.client.renderer.RenderPipelines;
|
import net.minecraft.client.renderer.RenderPipelines;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import net.minecraft.resources.Identifier;
|
import net.minecraft.resources.Identifier;
|
||||||
|
|
||||||
public class NautilusHud extends RideableHud {
|
public class NautilusHud extends RideableHud {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import net.minecraft.client.DeltaTracker;
|
import net.minecraft.client.DeltaTracker;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.Constants;
|
import com.lukasabbe.simpletransporthud.Constants;
|
||||||
import com.lukasabbe.simplehud.config.Config;
|
import com.lukasabbe.simpletransporthud.config.Config;
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import com.lukasabbe.simplehud.config.SpeedEnum;
|
import com.lukasabbe.simpletransporthud.config.SpeedEnum;
|
||||||
import com.lukasabbe.simplehud.tools.ElytraTools;
|
import com.lukasabbe.simpletransporthud.tools.ElytraTools;
|
||||||
import net.minecraft.client.DeltaTracker;
|
import net.minecraft.client.DeltaTracker;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.lukasabbe.simplehud.huds;
|
package com.lukasabbe.simpletransporthud.huds;
|
||||||
|
|
||||||
import com.lukasabbe.simplehud.config.HudPosition;
|
import com.lukasabbe.simpletransporthud.config.HudPosition;
|
||||||
import net.minecraft.resources.Identifier;
|
import net.minecraft.resources.Identifier;
|
||||||
|
|
||||||
public class StriderHud extends RideableHud{
|
public class StriderHud extends RideableHud{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.tools;
|
package com.lukasabbe.simpletransporthud.tools;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.player.LocalPlayer;
|
import net.minecraft.client.player.LocalPlayer;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.lukasabbe.simplehud.tools;
|
package com.lukasabbe.simpletransporthud.tools;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.player.LocalPlayer;
|
import net.minecraft.client.player.LocalPlayer;
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
"simple_hud.config.title": "Simple HUD config menu",
|
|
||||||
"simple_hud.config.category.general.name": "General options",
|
|
||||||
"simple_hud.config.category.general.tooltip": "All general options for the mod",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.name": "Toggle HUD:s",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.description": "Toggle menu for all transport HUD:s",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.elytra_hud.name": "Elytra HUD",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.elytra_hud.description": "Elytra Hud toggle",
|
|
||||||
"simple_hud.config.category.elytra_options.name": "Elytra HUD options",
|
|
||||||
"simple_hud.config.category.elytra_options.option.speed_enum.name": "Speed unit",
|
|
||||||
"simple_hud.config.category.elytra_options.option.speed_enum.description": "You can change the speed unit to what you are used to",
|
|
||||||
"simple_hud.config.speed_enum.kmh": "km/h",
|
|
||||||
"simple_hud.config.speed_enum.mph": "MPH",
|
|
||||||
"simple_hud.config.speed_enum.ms": "m/s",
|
|
||||||
"simple_hud.config.position.center": "Center",
|
|
||||||
"simple_hud.config.position.top_left": "Top Left",
|
|
||||||
"simple_hud.config.position.top_right": "Top Right",
|
|
||||||
"simple_hud.config.position.bottom_left": "Bottom Left",
|
|
||||||
"simple_hud.config.position.bottom_right": "Bottom Right",
|
|
||||||
"simple_hud.config.category.boat_hud.name": "Boat HUD options",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.boat_hud.name": "Boat HUD",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.boat_hud.description": "Boat Hud toggle",
|
|
||||||
"simple_hud.config.category.general.option.scale.description": "Change the scale of the HUD",
|
|
||||||
"simple_hud.config.category.general.option.scale.name": "Scale",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.minecart_hud.name": "Minecart HUD",
|
|
||||||
"simple_hud.config.category.general.group.activated_huds.option.minecart_hud.description": "Minecart Hud toggle",
|
|
||||||
"simple_hud.config.category.general.option.safe_area.name": "Ignore Safe Area",
|
|
||||||
"simple_hud.config.category.general.option.safe_area.description": "Move HUD to screen edges, ignoring GUI safe area margins",
|
|
||||||
"simple_hud.config.category.elytra_options.option.hud_position.name": "HUD Position",
|
|
||||||
"simple_hud.config.category.elytra_options.option.hud_position.description": "Change the position of the HUD on screen",
|
|
||||||
"simple_hud.config.category.elytra_options.option.delay_hud.name": "Delay HUD displaying",
|
|
||||||
"simple_hud.config.category.elytra_options.option.delay_hud.description": "Change the time it takes for the HUD to appear",
|
|
||||||
"simple_hud.config.category.minecart_hud.name": "Minecart HUD options"
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"simple_transport_hud.config.title": "Simple HUD config menu",
|
||||||
|
"simple_transport_hud.config.category.general.name": "General options",
|
||||||
|
"simple_transport_hud.config.category.general.tooltip": "All general options for the mod",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.name": "Toggle HUD:s",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.description": "Toggle menu for all transport HUD:s",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.elytra_hud.name": "Elytra HUD",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.elytra_hud.description": "Elytra Hud toggle",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.name": "Elytra HUD options",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.speed_enum.name": "Speed unit",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.speed_enum.description": "You can change the speed unit to what you are used to",
|
||||||
|
"simple_transport_hud.config.speed_enum.kmh": "km/h",
|
||||||
|
"simple_transport_hud.config.speed_enum.mph": "MPH",
|
||||||
|
"simple_transport_hud.config.speed_enum.ms": "m/s",
|
||||||
|
"simple_transport_hud.config.position.center": "Center",
|
||||||
|
"simple_transport_hud.config.position.top_left": "Top Left",
|
||||||
|
"simple_transport_hud.config.position.top_right": "Top Right",
|
||||||
|
"simple_transport_hud.config.position.bottom_left": "Bottom Left",
|
||||||
|
"simple_transport_hud.config.position.bottom_right": "Bottom Right",
|
||||||
|
"simple_transport_hud.config.category.boat_hud.name": "Boat HUD options",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.boat_hud.name": "Boat HUD",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.boat_hud.description": "Boat Hud toggle",
|
||||||
|
"simple_transport_hud.config.category.general.option.scale.description": "Change the scale of the HUD",
|
||||||
|
"simple_transport_hud.config.category.general.option.scale.name": "Scale",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.minecart_hud.name": "Minecart HUD",
|
||||||
|
"simple_transport_hud.config.category.general.group.activated_huds.option.minecart_hud.description": "Minecart Hud toggle",
|
||||||
|
"simple_transport_hud.config.category.general.option.safe_area.name": "Ignore Safe Area",
|
||||||
|
"simple_transport_hud.config.category.general.option.safe_area.description": "Move HUD to screen edges, ignoring GUI safe area margins",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.hud_position.name": "HUD Position",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.hud_position.description": "Change the position of the HUD on screen",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.delay_hud.name": "Delay HUD displaying",
|
||||||
|
"simple_transport_hud.config.category.elytra_options.option.delay_hud.description": "Change the time it takes for the HUD to appear",
|
||||||
|
"simple_transport_hud.config.category.minecart_hud.name": "Minecart HUD options"
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 339 B |
|
Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 90 B |
|
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
|
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B |
|
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
|
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 167 B |
|
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
@@ -1,24 +1,24 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "simplehud",
|
"id": "simpletransporthud",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "SimpleHud",
|
"name": "Simple Transport HUD",
|
||||||
"description": "",
|
"description": "",
|
||||||
"authors": [],
|
"authors": [],
|
||||||
"contact": {},
|
"contact": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"icon": "assets/simplehud/icon.png",
|
"icon": "assets/simpletransporthud/icon.png",
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"client": [
|
"client": [
|
||||||
"com.lukasabbe.simplehud.SimpleHudMod"
|
"com.lukasabbe.simpletransporthud.SimpleTransportHudMod"
|
||||||
],
|
],
|
||||||
"modmenu": [
|
"modmenu": [
|
||||||
"com.lukasabbe.simplehud.config.ModMenu"
|
"com.lukasabbe.simpletransporthud.config.ModMenu"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"simplehud.mixins.json"
|
"simpletransporthud.mixins.json"
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=${loader_version}",
|
"fabricloader": ">=${loader_version}",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "com.lukasabbe.simplehud.mixin",
|
"package": "com.lukasabbe.simpletransporthud.mixin",
|
||||||
"compatibilityLevel": "JAVA_21",
|
"compatibilityLevel": "JAVA_21",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
],
|
],
|
||||||