本文整理了Java中crazypants.enderio.base.paint.YetaUtil.isFacadeHidden()
方法的一些代码示例,展示了YetaUtil.isFacadeHidden()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YetaUtil.isFacadeHidden()
方法的具体详情如下:
包路径:crazypants.enderio.base.paint.YetaUtil
类名称:YetaUtil
方法名:isFacadeHidden
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
public static boolean isSolidFacadeRendered(@Nonnull IConduitBundle bundle, EntityPlayer player) {
return bundle.hasFacade() && !isFacadeHidden(bundle, player);
}
代码示例来源:origin: SleepyTrousers/EnderIO
@SideOnly(Side.CLIENT)
public static FacadeRenderState getRequiredFacadeRenderState(@Nonnull IConduitBundle bundle, @Nonnull EntityPlayer player) {
if (!bundle.hasFacade()) {
return FacadeRenderState.NONE;
}
if (YetaUtil.isFacadeHidden(bundle, player)) {
return FacadeRenderState.WIRE_FRAME;
}
return FacadeRenderState.FULL;
}
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public boolean shouldRenderInPass(int arg0) {
if (getPaintSource() != null && getPaintSource().isOpaqueCube() && !YetaUtil.isFacadeHidden(this, EnderIO.proxy.getClientPlayer())) {
return false;
}
return super.shouldRenderInPass(arg0);
}
代码示例来源:origin: SleepyTrousers/EnderIO
if (bundle.getConduits().isEmpty() && !YetaUtil.isFacadeHidden(bundle, player)) {
setBlockBounds(0, 0, 0, 1, 1, 1);
RayTraceResult hitPos = super.collisionRayTrace(bs, world, pos, origin, direction);
代码示例来源:origin: SleepyTrousers/EnderIO
if (bundle.hasFacade() && !YetaUtil.isFacadeHidden(bundle, player)) {
final IBlockState paintSource = bundle.getPaintSource();
if (paintSource != null && paintSource.isOpaqueCube()) {
内容来源于网络,如有侵权,请联系作者删除!