Skip to content

Commit

Permalink
Create custom block render types
Browse files Browse the repository at this point in the history
  • Loading branch information
Byteandahalf committed Apr 25, 2014
1 parent 386b1a2 commit 7fbf499
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/net/zhuoweizhang/mcpelauncher/ScriptManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,7 @@ public static int spawnMob(double x, double y, double z, int typeId, String tex)
return entityId;
}


@JSStaticFunction
public static String getSignText(int x, int y, int z, int line) {
if (line < 0 || line >= 4)
Expand Down Expand Up @@ -2346,6 +2347,11 @@ public static void renderCross(int blockId, int x, int y, int z) {
nativeRenderCrossBlock(blockId, x, y, z);
}

@JSStaticFunction
public static void renderTorch(int blockId, int x, int y, int z) {
nativeRenderTorchBlock(blockId, x, y, z);
}

@Override
public String getClassName() {
return "BlockRenderer";
Expand Down

2 comments on commit 7fbf499

@Andrewsvaleriote
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_a_Andrews:-)

@Andrewsvaleriote
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.