1.0.11
SlightlyVanilla/pipeline/head There was a failure building this commit Details

This commit is contained in:
TheBrokenRail 2020-10-20 11:51:45 -04:00
parent e7f639092b
commit a1b67ed622
6 changed files with 31 additions and 19 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
**1.0.11**
* Fix Loading On Client Without ModMenu
* Fix Loading On Server
**1.0.10** **1.0.10**
* Add Note Block Screen Tweak * Add Note Block Screen Tweak

View File

@ -3,20 +3,20 @@ org.gradle.jvmargs = -Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version = 1.16.2 minecraft_version = 1.16.3
curseforge_id = 368420 curseforge_id = 368420
simple_minecraft_version = 1.16.2 simple_minecraft_version = 1.16.3
yarn_build = 21 yarn_build = 47
fabric_loader_version = 0.9.2+build.206 fabric_loader_version = 0.10.3+build.211
# Mod Properties # Mod Properties
mod_version = 1.0.10 mod_version = 1.0.11
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
archives_base_name = slightlyvanilla archives_base_name = slightlyvanilla
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_api_version = 0.19.0+build.398-1.16 fabric_api_version = 0.24.1+build.412-1.16
modmenu_version = 1.14.6+build.31 modmenu_version = 1.14.6+build.31
cloth_config_version = 4.7.0-unstable cloth_config_version = 4.7.0-unstable
autoconfig_version = 3.2.0-unstable autoconfig_version = 3.2.0-unstable

View File

@ -0,0 +1,18 @@
package com.thebrokenrail.slightlyvanilla.client;
import com.thebrokenrail.slightlyvanilla.ModConfig;
import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.gui.screen.Screen;
@SuppressWarnings("unused")
@Environment(EnvType.CLIENT)
public class ModMenu implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return (ConfigScreenFactory<Screen>) screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get();
}
}

View File

@ -1,30 +1,20 @@
package com.thebrokenrail.slightlyvanilla.client; package com.thebrokenrail.slightlyvanilla.client;
import com.thebrokenrail.slightlyvanilla.SlightlyVanilla; import com.thebrokenrail.slightlyvanilla.SlightlyVanilla;
import com.thebrokenrail.slightlyvanilla.ModConfig;
import com.thebrokenrail.slightlyvanilla.entity.SlimeballEntity; import com.thebrokenrail.slightlyvanilla.entity.SlimeballEntity;
import com.thebrokenrail.slightlyvanilla.entity.SpawnEggEntity; import com.thebrokenrail.slightlyvanilla.entity.SpawnEggEntity;
import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType; import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment; import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry; import net.fabricmc.fabric.api.client.rendereregistry.v1.EntityRendererRegistry;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.render.entity.FlyingItemEntityRenderer; import net.minecraft.client.render.entity.FlyingItemEntityRenderer;
@SuppressWarnings("unused") @SuppressWarnings("unused")
@Environment(EnvType.CLIENT) @Environment(EnvType.CLIENT)
public class SlightlyVanillaClient implements ClientModInitializer, ModMenuApi { public class SlightlyVanillaClient implements ClientModInitializer {
@Override @Override
public void onInitializeClient() { public void onInitializeClient() {
EntityRendererRegistry.INSTANCE.register(SlightlyVanilla.SLIMEBALL_ENTITY, (entityRenderDispatcher, context) -> new FlyingItemEntityRenderer<SlimeballEntity>(entityRenderDispatcher, context.getItemRenderer())); EntityRendererRegistry.INSTANCE.register(SlightlyVanilla.SLIMEBALL_ENTITY, (entityRenderDispatcher, context) -> new FlyingItemEntityRenderer<SlimeballEntity>(entityRenderDispatcher, context.getItemRenderer()));
EntityRendererRegistry.INSTANCE.register(SlightlyVanilla.SPAWN_EGG_ENTITY, (entityRenderDispatcher, context) -> new FlyingItemEntityRenderer<SpawnEggEntity>(entityRenderDispatcher, context.getItemRenderer())); EntityRendererRegistry.INSTANCE.register(SlightlyVanilla.SPAWN_EGG_ENTITY, (entityRenderDispatcher, context) -> new FlyingItemEntityRenderer<SpawnEggEntity>(entityRenderDispatcher, context.getItemRenderer()));
} }
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return (ConfigScreenFactory<Screen>) screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get();
}
} }

View File

@ -23,7 +23,7 @@
"com.thebrokenrail.slightlyvanilla.client.SlightlyVanillaClient" "com.thebrokenrail.slightlyvanilla.client.SlightlyVanillaClient"
], ],
"modmenu": [ "modmenu": [
"com.thebrokenrail.slightlyvanilla.client.SlightlyVanillaClient" "com.thebrokenrail.slightlyvanilla.client.ModMenu"
] ]
}, },
"mixins": [ "mixins": [

View File

@ -4,11 +4,11 @@
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_8",
"client": [ "client": [
"MixinClientPlayNetworkHandler", "MixinClientPlayNetworkHandler",
"MixinClientPlayerInteractionManager",
"ScreenHandlerAccessor" "ScreenHandlerAccessor"
], ],
"mixins": [ "mixins": [
"MixinAbstractTraderEntity", "MixinAbstractTraderEntity",
"MixinClientPlayerInteractionManager",
"MixinItem", "MixinItem",
"MixinLootableContainerBlockEntity", "MixinLootableContainerBlockEntity",
"MixinNetherPortalBlockAreaHelper", "MixinNetherPortalBlockAreaHelper",