Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete ASM coremod #15

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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