Skip to content

Commit

Permalink
Merge pull request #15 from GTNewHorizons/asm
Browse files Browse the repository at this point in the history
Delete ASM coremod
  • Loading branch information
boubou19 authored Oct 23, 2024
2 parents 5cffa32 + 89cfc4e commit 5c73e86
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 573 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatibility only
# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
coreModClass = core.LoadingPlugin
coreModClass =

# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,39 +49,18 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks renderer) {
TileRemoteInterface tile = (TileRemoteInterface) world.getTileEntity(x, y, z);

if (tile != null) {
if (tile.remotePosition == null || !tile.remotePosition.inWorld(tile.getWorldObj())
|| tile.visualState != VisualState.CAMOUFLAGE_REMOTE) {
renderer.renderStandardBlock(block, x, y, z);
} else {
if (tile.remotePosition != null && tile.remotePosition.inWorld(tile.getWorldObj())) {
Block remoteBlock = tile.remotePosition.getBlock();
int rx = tile.remotePosition.x - x;
int ry = tile.remotePosition.y - y;
int rz = tile.remotePosition.z - z;

Tessellator tessellator = Tessellator.instance;

if (remoteBlock.getRenderType() == 0) {
renderer.renderStandardBlock(block, x, y, z);
} else {
if (remoteBlock.canRenderInPass(ForgeHooksClient.getWorldRenderPass())) {
TessellatorCapture.startCapturing();

TessellatorCapture.rotationAngle = 90 * tile.rotationY;
TessellatorCapture.offsetX = -(x + rx) - 1;
TessellatorCapture.offsetZ = -(z + rz) - 1;

tessellator.addTranslation(-rx, -ry, -rz);
renderer.renderBlockByRenderType(
remoteBlock,
tile.remotePosition.x,
tile.remotePosition.y,
tile.remotePosition.z);
tessellator.addTranslation(rx, ry, rz);

TessellatorCapture.reset();
renderer.renderBlockByRenderType(remoteBlock, x, y, z);
}
}
}
Expand Down
85 changes: 0 additions & 85 deletions src/main/java/remoteio/client/render/TessellatorCapture.java

This file was deleted.

37 changes: 0 additions & 37 deletions src/main/java/remoteio/core/LoadingPlugin.java

This file was deleted.

23 changes: 0 additions & 23 deletions src/main/java/remoteio/core/MappingHelper.java

This file was deleted.

78 changes: 0 additions & 78 deletions src/main/java/remoteio/core/mapping/MappingConstants.java

This file was deleted.

41 changes: 0 additions & 41 deletions src/main/java/remoteio/core/transform/CoreTransformer.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/remoteio/core/transform/ITransformer.java

This file was deleted.

Loading

0 comments on commit 5c73e86

Please sign in to comment.