• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ObfHelper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中me.ichun.mods.ichunutil.common.core.util.ObfHelper的典型用法代码示例。如果您正苦于以下问题:Java ObfHelper类的具体用法?Java ObfHelper怎么用?Java ObfHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ObfHelper类属于me.ichun.mods.ichunutil.common.core.util包,在下文中一共展示了ObfHelper类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: doRender

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@Override
public void doRender(EntityShattered shattered, double x, double y, double z, float entityYaw, float partialTicks)
{
    if(shattered.model == null)
    {
        shattered.model = new ModelShattered(shattered);
    }
    ResourceLocation rl = getEntityTexture(shattered);
    if(shattered.model.entRenderer instanceof RenderLivingBase && rl != null)
    {
        GlStateManager.pushMatrix();
        GlStateManager.translate(x, y, z);
        GlStateManager.rotate(180F, 0F, 1F, 0F);
        GlStateManager.scale(-1.0F, -1.0F, 1.0F);

        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);

        bindTexture(rl);
        GlStateManager.alphaFunc(GL11.GL_GREATER, 0.003921569F);
        ObfHelper.invokePreRenderCallback((RenderLivingBase)shattered.model.entRenderer, shattered.model.entRenderer.getClass(), shattered.acquired, partialTicks);
        GlStateManager.translate(0F, -1F, 0F);
        shattered.model.render(shattered, 0F, 0F, 0F, 0F, 0F, 0.0625F);
        GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F);

        GlStateManager.disableBlend();

        GlStateManager.popMatrix();
    }
}
 
开发者ID:iChun,项目名称:Shatter,代码行数:31,代码来源:RenderShattered.java


示例2: onGuiActionPerformed

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@SubscribeEvent
public void onGuiActionPerformed(GuiScreenEvent.ActionPerformedEvent.Pre event)
{
    if(!ObfHelper.obfuscated() && Minecraft.getMinecraft().getSession().getProfile().getName().equals("iChun") && (event.getGui().getClass() == GuiIngameMenu.class && event.getButton().id == 12 || event.getGui().getClass() == GuiMainMenu.class && event.getButton().id == 6) && !GuiScreen.isShiftKeyDown())
    {
        event.setCanceled(true);

        Minecraft.getMinecraft().displayGuiScreen(new GuiConfigs(Minecraft.getMinecraft().currentScreen));
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:11,代码来源:EventHandlerClient.java


示例3: onPreInit

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@Mod.EventHandler
public void onPreInit(FMLPreInitializationEvent event)
{
    ObfHelper.detectObfuscation();

    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInit();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:12,代码来源:iChunUtil.java


示例4: getEntityTexture

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@Override
protected ResourceLocation getEntityTexture(EntityGib gib)
{
    Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(gib.parent);
    return ObfHelper.getEntityTexture(render, render.getClass(), gib.parent);
}
 
开发者ID:iChun,项目名称:Mob-Dismemberment,代码行数:7,代码来源:RenderGib.java


示例5: getEntityTexture

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@Override
protected ResourceLocation getEntityTexture(EntityShattered entity)
{
    return ObfHelper.getEntityTexture(renderManager.getEntityRenderObject(entity.acquired), renderManager.getEntityRenderObject(entity.acquired).getClass(), entity.acquired);
}
 
开发者ID:iChun,项目名称:Shatter,代码行数:6,代码来源:RenderShattered.java


示例6: onClientTick

import me.ichun.mods.ichunutil.common.core.util.ObfHelper; //导入依赖的package包/类
@SubscribeEvent
public void onClientTick(TickEvent.ClientTickEvent event)
{
    Minecraft mc = Minecraft.getMinecraft();
    if(event.phase.equals(TickEvent.Phase.END))
    {
        if(mc.world != null)
        {
            if(connectingToServer)
            {
                connectingToServer = false;
                if(((net.minecraftforge.registries.ForgeRegistry<IRecipe>)net.minecraftforge.fml.common.registry.ForgeRegistries.RECIPES).getID(new ResourceLocation("ichunutil", "compact_porkchop")) == -1)
                {
                    iChunUtil.config.enableCompactPorkchop = 0;
                }
                MinecraftForge.EVENT_BUS.post(new ServerPacketableEvent());
            }
            if(patronUpdateServerAsPatron)
            {
                patronUpdateServerAsPatron = false;
                iChunUtil.channel.sendToServer(new PacketPatronInfo(iChunUtil.proxy.getPlayerId(), iChunUtil.config.patronRewardType, iChunUtil.config.showPatronReward == 1));
            }
            for(KeyBind bind : keyBindList)
            {
                bind.tick();
            }
            for(Map.Entry<KeyBinding, KeyBind> e : mcKeyBindList.entrySet())
            {
                if(e.getValue().keyIndex != e.getKey().getKeyCode())
                {
                    e.setValue(new KeyBind(e.getKey().getKeyCode()));
                }
                e.getValue().tick();
            }
            hasScreen = mc.currentScreen != null;

            if(!mc.isGamePaused())
            {
                EntityTrackerHandler.tick();

                GrabHandler.tick(Side.CLIENT);

                if(!ObfHelper.obfuscated() && Minecraft.getMinecraft().getSession().getProfile().getName().equals("iChun") && mc.player.isElytraFlying() && mc.gameSettings.keyBindJump.isKeyDown())
                {
                    mc.player.motionY += 0.05F;
                }
            }
        }
        ticks++;
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:52,代码来源:EventHandlerClient.java



注:本文中的me.ichun.mods.ichunutil.common.core.util.ObfHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java User类代码示例发布时间:2022-05-22
下一篇:
Java Structure类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap