BlockFluid.java 文件源码

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

项目:RuneCraftery 作者:
@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.
     */
    public void registerIcons(IconRegister par1IconRegister)
    {
        if (this.blockMaterial == Material.lava)
        {
            this.theIcon = new Icon[] {par1IconRegister.registerIcon("lava_still"), par1IconRegister.registerIcon("lava_flow")};
        }
        else
        {
            this.theIcon = new Icon[] {par1IconRegister.registerIcon("water_still"), par1IconRegister.registerIcon("water_flow")};
        }
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号