BlockDoorMF.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:MineFantasy 作者:
@SideOnly(Side.CLIENT)

    /**
     * When this method is called, your block should register all the icons it needs with the given IconRegister. This
     * is the only chance you get to register icons.
     */
    @Override
    public void registerIcons(IconRegister par1IconRegister)
    {
        this.icon = new Icon[doornames.length * 2];

        for (int i = 0; i < doornames.length; ++i)
        {
            this.icon[i] = par1IconRegister.registerIcon("MineFantasy:Furn/" + doornames[i]);
            this.icon[i + doornames.length] = new IconFlipped(this.icon[i], true, false);
        }
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号