Skip to content

Commit

Permalink
Merge pull request #7 from TimLee9024/1.19-Fabric-2.0
Browse files Browse the repository at this point in the history
MCglTF-Example-1.19.2-Fabric-2.0.0.0
  • Loading branch information
Protoxy22 authored Oct 29, 2022
2 parents f700f24 + 914a540 commit 3d2a907
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 42 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ org.gradle.jvmargs=-Xmx4G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.19
loader_version=0.14.8
minecraft_version=1.19.2
loader_version=0.14.10

# Mod Properties
mod_version = 1.19-Fabric-1.0.0.0
maven_group = com.timlee9024.mcgltf.example
mod_version = 1.19.2-Fabric-2.0.0.0
maven_group = com.modularmods.mcgltf.example
archives_base_name = MCglTF-Example

# Dependencies
fabric_version=0.58.0+1.19
fabric_version=0.64.0+1.19.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.block.entity.BlockEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -11,12 +11,12 @@
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Quaternion;
import com.timlee9024.mcgltf.IGltfModelReceiver;
import com.timlee9024.mcgltf.MCglTF;
import com.timlee9024.mcgltf.RenderedGltfModel;
import com.timlee9024.mcgltf.RenderedGltfScene;
import com.timlee9024.mcgltf.animation.GltfAnimationCreator;
import com.timlee9024.mcgltf.animation.InterpolatedChannel;
import com.modularmods.mcgltf.IGltfModelReceiver;
import com.modularmods.mcgltf.MCglTF;
import com.modularmods.mcgltf.RenderedGltfModel;
import com.modularmods.mcgltf.RenderedGltfScene;
import com.modularmods.mcgltf.animation.GltfAnimationCreator;
import com.modularmods.mcgltf.animation.InterpolatedChannel;

import de.javagl.jgltf.model.AnimationModel;
import net.minecraft.client.renderer.MultiBufferSource;
Expand Down Expand Up @@ -139,7 +139,6 @@ public void render(ExampleBlockEntity p_112307_, float p_112308_, PoseStack p_11
GL30.glBindVertexArray(currentVAO);
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, currentArrayBuffer);
GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, currentElementArrayBuffer);
RenderedGltfModel.nodeGlobalTransformLookup.clear();
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import com.timlee9024.mcgltf.MCglTF;
import com.modularmods.mcgltf.MCglTF;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.npc.Villager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -11,12 +11,12 @@
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Quaternion;
import com.timlee9024.mcgltf.IGltfModelReceiver;
import com.timlee9024.mcgltf.MCglTF;
import com.timlee9024.mcgltf.RenderedGltfModel;
import com.timlee9024.mcgltf.RenderedGltfScene;
import com.timlee9024.mcgltf.animation.GltfAnimationCreator;
import com.timlee9024.mcgltf.animation.InterpolatedChannel;
import com.modularmods.mcgltf.IGltfModelReceiver;
import com.modularmods.mcgltf.MCglTF;
import com.modularmods.mcgltf.RenderedGltfModel;
import com.modularmods.mcgltf.RenderedGltfScene;
import com.modularmods.mcgltf.animation.GltfAnimationCreator;
import com.modularmods.mcgltf.animation.InterpolatedChannel;

import de.javagl.jgltf.model.AnimationModel;
import net.minecraft.client.renderer.MultiBufferSource;
Expand Down Expand Up @@ -122,7 +122,6 @@ public void render(ExampleEntity p_114485_, float p_114486_, float p_114487_, Po
GL30.glBindVertexArray(currentVAO);
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, currentArrayBuffer);
GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, currentElementArrayBuffer);
RenderedGltfModel.nodeGlobalTransformLookup.clear();
super.render(p_114485_, p_114486_, p_114487_, p_114488_, p_114489_, p_114490_);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.timlee9024.mcgltf.example;
package com.modularmods.mcgltf.example;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -13,12 +13,12 @@
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Matrix3f;
import com.mojang.math.Quaternion;
import com.timlee9024.mcgltf.IGltfModelReceiver;
import com.timlee9024.mcgltf.MCglTF;
import com.timlee9024.mcgltf.RenderedGltfModel;
import com.timlee9024.mcgltf.RenderedGltfScene;
import com.timlee9024.mcgltf.animation.GltfAnimationCreator;
import com.timlee9024.mcgltf.animation.InterpolatedChannel;
import com.modularmods.mcgltf.IGltfModelReceiver;
import com.modularmods.mcgltf.MCglTF;
import com.modularmods.mcgltf.RenderedGltfModel;
import com.modularmods.mcgltf.RenderedGltfScene;
import com.modularmods.mcgltf.animation.GltfAnimationCreator;
import com.modularmods.mcgltf.animation.InterpolatedChannel;

import de.javagl.jgltf.model.AnimationModel;
import net.fabricmc.fabric.api.client.rendering.v1.BuiltinItemRendererRegistry;
Expand Down Expand Up @@ -192,7 +192,6 @@ public void render(ItemStack stack, ItemTransforms.TransformType mode, PoseStack
GL30.glBindVertexArray(currentVAO);
GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, currentArrayBuffer);
GL15.glBindBuffer(GL15.GL_ELEMENT_ARRAY_BUFFER, currentElementArrayBuffer);
RenderedGltfModel.nodeGlobalTransformLookup.clear();
}

}
12 changes: 6 additions & 6 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"name": "Example MCglTF Usage",
"description": "Example mod to demonstrate the usage of MCglTF.",
"authors": [
"TimLee9024"
"TimLee9024", "Protoxy"
],
"contact": {
"homepage": "https://github.com/TimLee9024/MCglTF-Example/tree/1.19-Fabric",
"sources": "https://github.com/TimLee9024/MCglTF-Example/tree/1.19-Fabric",
"issues": "https://github.com/TimLee9024/MCglTF-Example/issues"
"homepage": "https://github.com/ModularMods/MCglTF-Example/tree/1.19-Fabric",
"sources": "https://github.com/ModularMods/MCglTF-Example/tree/1.19-Fabric",
"issues": "https://github.com/ModularMods/MCglTF-Example/issues"
},

"license": "MIT",
Expand All @@ -20,10 +20,10 @@
"environment": "*",
"entrypoints": {
"main": [
"com.timlee9024.mcgltf.example.Example"
"com.modularmods.mcgltf.example.Example"
],
"client": [
"com.timlee9024.mcgltf.example.ExampleClient"
"com.modularmods.mcgltf.example.ExampleClient"
]
},

Expand Down

0 comments on commit 3d2a907

Please sign in to comment.