net.minecraft.block.Block.shouldSideBeRendered()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中net.minecraft.block.Block.shouldSideBeRendered()方法的一些代码示例,展示了Block.shouldSideBeRendered()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.shouldSideBeRendered()方法的具体详情如下:
包路径:net.minecraft.block.Block
类名称:Block
方法名:shouldSideBeRendered

Block.shouldSideBeRendered介绍

暂无

代码示例

代码示例来源:origin: DimensionalDevelopment/VanillaFix

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockAccess blockAccess, BlockPos pos, EnumFacing facing) {
  return block.shouldSideBeRendered(this, blockAccess, pos, facing);
}

代码示例来源:origin: Alex-the-666/Ice_and_Fire

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
  return side == EnumFacing.UP ? true : super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SuppressWarnings("deprecation")
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
  return side == EnumFacing.DOWN ? super.shouldSideBeRendered(blockState, blockAccess, pos, side) : true;
}

代码示例来源:origin: DimensionalDevelopment/VanillaFix

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockAccess blockAccess, BlockPos pos, EnumFacing facing) {
  return normalState.getBlock().shouldSideBeRendered(this, blockAccess, pos, facing);
}

代码示例来源:origin: Chisel-Team/Chisel

@Override
@Deprecated
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
  return super.shouldSideBeRendered(blockState, blockAccess, pos, side) && blockState != blockAccess.getBlockState(pos.offset(side));
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,
    EnumFacing side) {
  if (side == EnumFacing.UP) {
    return true;
  } else {
    IBlockState iblockstate = blockAccess.getBlockState(pos.offset(side));
    return iblockstate.getBlock() == this && ((Integer) iblockstate.getValue(LAYERS)).intValue() >= ((Integer) blockState.getValue(LAYERS)).intValue() ? false : super.shouldSideBeRendered(blockState, blockAccess, pos, side);
  }
}

代码示例来源:origin: WayofTime/BloodMagic

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  return world.getBlockState(pos.offset(side)) != state || state.getBlock() != this && super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  return block == this || block == ModBlocks.AMBER ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  if (state != iblockstate)
    return true;
  if (block == this)
    return false;
  return block == this ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  if (state != iblockstate)
    return true;
  if (block == this)
    return false;
  return block == this ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: WayofTime/BloodMagic

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  return world.getBlockState(pos.offset(side)) != state || state.getBlock() != this && super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: Alex-the-666/Ice_and_Fire

@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = blockAccess.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  if (block == this) {
    return false;
  }
  return block != this && super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}

代码示例来源:origin: JurassiCraftTeam/JurassiCraft2

@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,
    EnumFacing side) {
  return blockAccess.getBlockState(pos.offset(side)).getBlock() == this ? false
      : super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  return (block == this || block == ModBlocks.FORCE_FIELD)  ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  if (state != iblockstate)
    return true;
  if (block == this)
    return false;
  return block == this ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  return (block == this || block == ModBlocks.FORCE_LOCK) ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: McJtyMods/DeepResonance

@SideOnly(Side.CLIENT)
@Override
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  Block block = world.getBlockState(pos.offset(side)).getBlock();
  return block != this && super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: JurassiCraftTeam/JurassiCraft2

@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,
    EnumFacing side) {
  return blockAccess.getBlockState(pos.offset(side)).getBlock() == this ? false
      : super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}

代码示例来源:origin: vadis365/TheErebus

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings("deprecation")
public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
  IBlockState iblockstate = world.getBlockState(pos.offset(side));
  Block block = iblockstate.getBlock();
  return block == this ? false : super.shouldSideBeRendered(state, world, pos, side);
}

代码示例来源:origin: ForestryMC/ForestryMC

@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
  return (Proxies.render.fancyGraphicsEnabled() || blockAccess.getBlockState(pos.offset(side)).getBlock() != this) && super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}

相关文章

Block类方法