Skip to content

Commit

Permalink
GeckoLib
Browse files Browse the repository at this point in the history
  • Loading branch information
vrglab committed Jun 16, 2024
1 parent 0f898df commit cd547a0
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@ allprojects {
version = rootProject.mod_version
repositories {
maven {
name = "Vrglabs Lib"
url "https://maven.thevrglab.com/"
}
maven {
name = 'GeckoLib'
url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
content {
includeGroupByRegex("software\\.bernie.*")
includeGroup("com.eliotlash.mclib")
}
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ dependencies {
modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"

modImplementation "org.Vrglab:vrglabslib:common-$rootProject.vrglabs_lib_version-mc$rootProject.minecraft_version"
modImplementation "software.bernie.geckolib:geckolib-fabric-$rootProject.geckolib_minecraft_version:$rootProject.geckolib_version"
implementation("com.eliotlash.mclib:mclib:20")

}
2 changes: 2 additions & 0 deletions common/src/main/java/com/Vrglab/ExtremeRubyMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.Vrglab.World.Gen.ExWorldGen;
import com.Vrglab.World.Items.ExItemGroups;
import com.Vrglab.World.Items.ExItems;
import com.Vrglab.World.Rendering.ExGeckoRenderers;
import org.Vrglab.Modloader.Registration.Registry;

public final class ExtremeRubyMod {
Expand All @@ -14,5 +15,6 @@ public static void init() {
ExItems.init();
ExBlocks.init();
ExWorldGen.init();
ExGeckoRenderers.init();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.Vrglab.World.Rendering;

public class ExGeckoArmorRegistry {

/** THIS AREA SHOULD REMAIN EMPTY AND UNUSED UNTIL GECKOLIB SUPPORT IS IMPLEMENTED IN VRGLABS LIB **/

public static void init() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.Vrglab.World.Rendering;

public class ExGeckoRenderers {

public static void init() {
ExGeckoArmorRegistry.init();
}
}
2 changes: 2 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ dependencies {
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"

modImplementation "org.Vrglab:vrglabslib:fabric-$rootProject.vrglabs_lib_version-mc$rootProject.minecraft_version"
modImplementation "software.bernie.geckolib:geckolib-fabric-$rootProject.geckolib_minecraft_version:$rootProject.geckolib_version"
implementation("com.eliotlash.mclib:mclib:20")

common(project(path: ':common', configuration: 'namedElements')) { transitive false }
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

import com.Vrglab.fabriclike.ExtremeRubyModFabricLike;
import org.Vrglab.fabriclike.VLModFabricLike;
import software.bernie.geckolib3.GeckoLib;

public final class ExtremeRubyModFabric implements ModInitializer {
@Override
public void onInitialize() {
ExtremeRubyModFabricLike.init();
GeckoLib.initialize();
}
}
2 changes: 2 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ dependencies {
// Architectury API. This is optional, and you can comment it out if you don't need it.
modImplementation "dev.architectury:architectury-forge:$rootProject.architectury_api_version"
modImplementation "org.Vrglab:vrglabslib:forge-$rootProject.vrglabs_lib_version-mc$rootProject.minecraft_version"
modImplementation "software.bernie.geckolib:geckolib-forge-$rootProject.geckolib_minecraft_version:$rootProject.geckolib_version"
implementation("com.eliotlash.mclib:mclib:20")
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
shadowBundle project(path: ':common', configuration: 'transformProductionForge')
}
Expand Down
2 changes: 2 additions & 0 deletions forge/src/main/java/com/Vrglab/forge/ExtremeRubyModForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

import com.Vrglab.ExtremeRubyMod;
import org.Vrglab.forge.Utils.ForgeRegistryCreator;
import software.bernie.geckolib3.GeckoLib;

@Mod(ExtremeRubyMod.MOD_ID)
public final class ExtremeRubyModForge {
public ExtremeRubyModForge() {
ForgeRegistryCreator.Create(FMLJavaModLoadingContext.get().getModEventBus(), ExtremeRubyMod.MOD_ID);
ExtremeRubyMod.init();
GeckoLib.initialize();
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ forge_version = 1.19.2-43.3.13
quilt_loader_version = 0.26.0
quilted_fabric_api_version = 4.0.0-beta.30+0.76.0-1.19.2
vrglabs_lib_version = 1.0.0
geckolib_version = 3.1.40
geckolib_minecraft_version = 1.19
3 changes: 3 additions & 0 deletions quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ dependencies {
// Quilt Standard Libraries and QSL.
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:$rootProject.quilted_fabric_api_version"

modImplementation "software.bernie.geckolib:geckolib-quilt-$rootProject.geckolib_minecraft_version:$rootProject.geckolib_version"
implementation("com.eliotlash.mclib:mclib:20")

// Architectury API. This is optional, and you can comment it out if you don't need it.
modImplementation("dev.architectury:architectury-fabric:$rootProject.architectury_api_version") {
// We must not pull Fabric Loader and Fabric API from Architectury Fabric.
Expand Down
3 changes: 3 additions & 0 deletions quilt/src/main/java/com/Vrglab/quilt/ExtremeRubyModQuilt.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;

import com.Vrglab.fabriclike.ExtremeRubyModFabricLike;
import software.bernie.geckolib3.GeckoLib;
import software.bernie.geckolib3.renderers.geo.GeoItemRenderer;

public final class ExtremeRubyModQuilt implements ModInitializer {
@Override
public void onInitialize(ModContainer mod) {
ExtremeRubyModFabricLike.init();
GeckoLib.initialize();
}
}

0 comments on commit cd547a0

Please sign in to comment.