-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
174 additions
and
159 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
4 changes: 2 additions & 2 deletions
4
Common/src/main/java/fuzs/visualworkbench/client/VisualWorkbenchClient.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
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
.../compat/jei/VisualWorkbenchJEIPlugin.java → ...gration/jei/VisualWorkbenchJEIPlugin.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
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
13 changes: 13 additions & 0 deletions
13
Common/src/main/java/fuzs/visualworkbench/proxy/ClientProxy.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,13 @@ | ||
package fuzs.visualworkbench.proxy; | ||
|
||
import net.minecraft.client.renderer.LevelRenderer; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockAndTintGetter; | ||
|
||
public class ClientProxy extends ServerProxy { | ||
|
||
@Override | ||
public int getLightColor(BlockAndTintGetter blockAndTintGetter, BlockPos pos) { | ||
return LevelRenderer.getLightColor(blockAndTintGetter, pos); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Common/src/main/java/fuzs/visualworkbench/proxy/Proxy.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,12 @@ | ||
package fuzs.visualworkbench.proxy; | ||
|
||
import fuzs.puzzleslib.core.DistTypeExecutor; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockAndTintGetter; | ||
|
||
public interface Proxy { | ||
@SuppressWarnings("Convert2MethodRef") | ||
Proxy INSTANCE = DistTypeExecutor.getForDistType(() -> () -> new ClientProxy(), () -> () -> new ServerProxy()); | ||
|
||
int getLightColor(BlockAndTintGetter blockAndTintGetter, BlockPos pos); | ||
} |
12 changes: 12 additions & 0 deletions
12
Common/src/main/java/fuzs/visualworkbench/proxy/ServerProxy.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,12 @@ | ||
package fuzs.visualworkbench.proxy; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockAndTintGetter; | ||
|
||
public class ServerProxy implements Proxy { | ||
|
||
@Override | ||
public int getLightColor(BlockAndTintGetter blockAndTintGetter, BlockPos pos) { | ||
return 15728880; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Common/src/main/java/fuzs/visualworkbench/util/MathHelper.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,9 @@ | ||
package fuzs.visualworkbench.util; | ||
|
||
public class MathHelper { | ||
|
||
public static float easeOutQuad(double t, float b, float c, double d) { | ||
float z = (float) t / (float) d; | ||
return -c * z * (z - 2.0F) + b; | ||
} | ||
} |
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
Oops, something went wrong.