本文整理汇总了Java中li.cil.oc.api.event.RobotRenderEvent.MountPoint方法的典型用法代码示例。如果您正苦于以下问题:Java RobotRenderEvent.MountPoint方法的具体用法?Java RobotRenderEvent.MountPoint怎么用?Java RobotRenderEvent.MountPoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类li.cil.oc.api.event.RobotRenderEvent
的用法示例。
在下文中一共展示了RobotRenderEvent.MountPoint方法的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);