no way to compare when less than two revisions
差分
このページの2つのバージョン間の差分を表示します。
— | test4 [2012/03/10 13:27] (現在) – 作成 ecolight | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | コード貼り付けテスト。 | ||
+ | ハイライトされるはず。 | ||
+ | |||
+ | <code java> | ||
+ | public class BlockTNT extends Block | ||
+ | { | ||
+ | |||
+ | public BlockTNT(int i, int j) | ||
+ | { | ||
+ | super(i, j, Material.tnt); | ||
+ | } | ||
+ | |||
+ | public int getBlockTextureFromSide(int i) | ||
+ | { | ||
+ | if(i == 0) | ||
+ | { | ||
+ | return blockIndexInTexture + 2; | ||
+ | } | ||
+ | if(i == 1) | ||
+ | { | ||
+ | return blockIndexInTexture + 1; | ||
+ | } else | ||
+ | { | ||
+ | return blockIndexInTexture; | ||
+ | } | ||
+ | } | ||
+ | </ |