forked from Vivecraft/VivecraftMod
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'vivecraft/Multiloader-1.21' into 1.21.0
- Loading branch information
Showing
17 changed files
with
75 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
common/src/main/java/org/vivecraft/client_vr/utils/ScaleHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.vivecraft.client_vr.utils; | ||
|
||
import net.minecraft.world.entity.LivingEntity; | ||
import org.vivecraft.client.Xplat; | ||
import org.vivecraft.mod_compat_vr.pehkui.PehkuiHelper; | ||
|
||
public class ScaleHelper { | ||
|
||
public static float getEntityScale(LivingEntity livingEntity, float tickDelta) { | ||
float scale = livingEntity.getScale(); | ||
if (Xplat.isModLoaded("pehkui")) { | ||
scale *= PehkuiHelper.getEntityScale(livingEntity, tickDelta); | ||
} | ||
return scale; | ||
} | ||
|
||
public static float getEntityBbScale(LivingEntity livingEntity, float tickDelta) { | ||
float scale = livingEntity.getScale(); | ||
if (Xplat.isModLoaded("pehkui")) { | ||
scale *= PehkuiHelper.getEntityBbScale(livingEntity, tickDelta); | ||
} | ||
return scale; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
stubs/src/main/java/me/jellysquid/mods/sodium/client/render/immediate/model/ModelCuboid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.jellysquid.mods.sodium.client.render.immediate.model; | ||
|
||
public interface ModelCuboid { | ||
public class ModelCuboid { | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/src/main/java/net/caffeinemc/mods/sodium/client/render/immediate/model/ModelCuboid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.caffeinemc.mods.sodium.client.render.immediate.model; | ||
|
||
public interface ModelCuboid { | ||
public class ModelCuboid { | ||
} |
2 changes: 1 addition & 1 deletion
2
...a/net/irisshaders/iris/compat/sodium/impl/shader_overrides/IrisChunkProgramOverrides.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.irisshaders.iris.compat.sodium.impl.shader_overrides; | ||
|
||
public interface IrisChunkProgramOverrides { | ||
public class IrisChunkProgramOverrides { | ||
} |
2 changes: 1 addition & 1 deletion
2
...va/net/irisshaders/iris/compat/sodium/impl/shader_overrides/IrisChunkShaderInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.irisshaders.iris.compat.sodium.impl.shader_overrides; | ||
|
||
public interface IrisChunkShaderInterface { | ||
public class IrisChunkShaderInterface { | ||
} |
2 changes: 1 addition & 1 deletion
2
stubs/src/main/java/net/irisshaders/iris/pipeline/SodiumTerrainPipeline.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.irisshaders.iris.pipeline; | ||
|
||
public interface SodiumTerrainPipeline { | ||
public class SodiumTerrainPipeline { | ||
} |