Browse Source

1.0.6

Fix Gradle Script
Automatically Adjust Shadow Size
master 1.0.6+20w13b
TheBrokenRail 1 year ago
parent
commit
ce28c1c609
  1. 4
      CHANGELOG.md
  2. 2
      build.gradle
  3. 2
      gradle.properties
  4. 27
      src/main/java/com/thebrokenrail/gulliverreloaded/mixin/MixinEntityRenderDispatcher.java
  5. 3
      src/main/resources/gulliver-reloaded.mixins.json

4
CHANGELOG.md

@ -1,5 +1,9 @@
# Changelog
**1.0.6**
* Fix Gradle Script
* Automatically Adjust Shadow Size
**1.0.5**
* Tweak Jumping Speed and Movement Speed

2
build.gradle

@ -78,7 +78,7 @@ if (project.hasProperty('curseforge.api_key')) {
addGameVersion project.simple_minecraft_version
addGameVersion 'Fabric'
mainArtifact(remapJar) {
displayName = "SorceryCraft v${mod_version} for ${project.minecraft_version}"
displayName = "Gulliver Reloaded v${mod_version} for ${project.minecraft_version}"
}
afterEvaluate {
uploadTask.dependsOn('remapJar')

2
gradle.properties

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.7.8+build.189
# Mod Properties
mod_version = 1.0.5
mod_version = 1.0.6
maven_group = com.thebrokenrail
archives_base_name = gulliver-reloaded

27
src/main/java/com/thebrokenrail/gulliverreloaded/mixin/MixinEntityRenderDispatcher.java

@ -0,0 +1,27 @@
package com.thebrokenrail.gulliverreloaded.mixin;
import com.thebrokenrail.gulliverreloaded.ScaledEntity;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.entity.EntityRenderDispatcher;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.world.WorldView;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;
@SuppressWarnings("unused")
@Environment(EnvType.CLIENT)
@Mixin(EntityRenderDispatcher.class)
public class MixinEntityRenderDispatcher {
@ModifyArg(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/entity/EntityRenderDispatcher;renderShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/entity/Entity;FFLnet/minecraft/world/WorldView;F)V"), method = "render", index = 6)
public float adjustShadowSize(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity, float darkness, float tickDelta, WorldView world, float size) {
if (entity instanceof ScaledEntity) {
return ((ScaledEntity) entity).getScale() * size;
} else {
return size;
}
}
}

3
src/main/resources/gulliver-reloaded.mixins.json

@ -4,7 +4,8 @@
"compatibilityLevel": "JAVA_8",
"client": [
"MixinClientPlayerInteractionManager",
"MixinLivingEntityRenderer"
"MixinLivingEntityRenderer",
"MixinEntityRenderDispatcher"
],
"mixins": [
"BrewingRecipeRegistryAccessor",

Loading…
Cancel
Save