wiki通知情報

重要 : サーバールールが2024/7/7に変更、施行されました。
2024年5月より領域保護を行う際に利用するアイテムが『羽根』に変更されました。 詳しくは詳細ページをご確認ください。
wiki更新情報(2021/5/5) / wiki重要告知(2021/5/9)

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;
 +        }
 +    }
 +</code>
プリント/エキスポート
QRコード
QR Code test4 (generated for current page)