当前位置: 首页>>代码示例>>Java>>正文


Java RobotRenderEvent类代码示例

本文整理汇总了Java中li.cil.oc.api.event.RobotRenderEvent的典型用法代码示例。如果您正苦于以下问题:Java RobotRenderEvent类的具体用法?Java RobotRenderEvent怎么用?Java RobotRenderEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RobotRenderEvent类属于li.cil.oc.api.event包,在下文中一共展示了RobotRenderEvent类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: render

import li.cil.oc.api.event.RobotRenderEvent; //导入依赖的package包/类
/**
 * Render the specified upgrade on a robot.
 * <p/>
 * The GL state has not been adjusted to the mount points position, so
 * that you can perform rotations without having to revert the translation.
 * It is your responsibility to position the rendered model to fit the
 * specified mount point. The state will be such that the origin is the
 * center of the robot. This is what the offset of the mount-point is
 * relative to.
 * <p/>
 * If the stack cannot be rendered, the renderer should indicate so in
 * {@link #computePreferredMountPoint}, otherwise it will still consume a mount
 * point.
 * <p/>
 * You usually won't need the robot parameter, but in case you <em>do</em>
 * need some contextual information, this should provide you with anything
 * you could need.
 *
 * @param stack      the item stack of the upgrade to render.
 * @param mountPoint the mount-point to render the upgrade at.
 * @param robot      the robot the upgrade is rendered on.
 * @param pt         partial tick time, e.g. for animations.
 */
void render(ItemStack stack, RobotRenderEvent.MountPoint mountPoint, Robot robot, float pt);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:25,代码来源:UpgradeRenderer.java


注:本文中的li.cil.oc.api.event.RobotRenderEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。