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

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

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

Block.isNormalCube介绍

暂无

代码示例

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

@Override
public boolean isNormalCube() {
  return block.isNormalCube(this);
}

代码示例来源:origin: Direwolf20-MC/BuildingGadgets

@Override
public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) {
  IBlockState mimicBlock = getActualMimicBlock(world, pos);
  if (mimicBlock == null) {
    return super.isNormalCube(state, world, pos);
  }
  try {
    return mimicBlock.getBlock().isNormalCube(mimicBlock, world, pos);
  } catch (Exception var8) {
    return super.isNormalCube(state, world, pos);
  }
}

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

@Override
public boolean isNormalCube() {
  return normalState.getBlock().isNormalCube(this);
}

代码示例来源:origin: MrCrayfish/MrCrayfishFurnitureMod

private boolean isHedge(IBlockAccess world, BlockPos pos)
{
  return world.getBlockState(pos).getBlock() instanceof BlockHedge || world.getBlockState(pos).getBlock().isNormalCube(world.getBlockState(pos), world, pos);
}

代码示例来源:origin: MrCrayfish/MrCrayfishFurnitureMod

@Override
public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
{
  EnumFacing[] aenumfacing = EnumFacing.values();
  int i = aenumfacing.length;
  for(int j = 2; j < i; ++j)
  {
    EnumFacing enumfacing = aenumfacing[j];
    if(worldIn.getBlockState(pos.offset(enumfacing)).getBlock().isNormalCube(worldIn.getBlockState(pos)))
    {
      return true;
    }
  }
  return false;
}

代码示例来源:origin: MatterOverdrive/MatterOverdrive-Legacy-Edition

if (!above.getBlock().isNormalCube(above, world, pos.offset(EnumFacing.UP)) && !aboveTwo.getBlock().isNormalCube(aboveTwo, world, pos.offset(EnumFacing.UP, 2))) {
  return pos;

代码示例来源:origin: CoFH/ThermalDynamics

if (state.hasComparatorInputOverride()) {
  level = state.getComparatorInputOverride(baseTile.world(), offsetPos);
} else if (block.isNormalCube(state, baseTile.world(), offsetPos)) {
  BlockPos offset2 = offsetPos.offset(side);

相关文章

Block类方法