net.minecraft.world.World.isBlockFullCube()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(89)

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

World.isBlockFullCube介绍

暂无

代码示例

代码示例来源:origin: Vazkii/Botania

double d3 = Double.MAX_VALUE;
if (!world.isBlockFullCube(blockpos.west()) && d0 < d3)
if (!world.isBlockFullCube(blockpos.east()) && 1.0D - d0 < d3)
if (!world.isBlockFullCube(blockpos.north()) && d2 < d3)
if (!world.isBlockFullCube(blockpos.south()) && 1.0D - d2 < d3)
if (!world.isBlockFullCube(blockpos.up()) && 1.0D - d1 < d3)

代码示例来源:origin: SleepyTrousers/EnderIO

@Override
public boolean isBlockFullCube(@Nonnull BlockPos pos) {
 return wrapped.isBlockFullCube(pos);
}

代码示例来源:origin: amadornes/MCMultiPart

@Override
public boolean isBlockFullCube(BlockPos pos) {
  return getActualWorld().isBlockFullCube(pos);
}

代码示例来源:origin: Glitchfiend/ToughAsNails

private boolean canFill(BlockPos pos)
{
  //Only spread within enclosed areas, significantly reduces the impact on performance and suits the purpose of coils
  return !this.getWorld().isBlockFullCube(pos) && (!this.getWorld().canSeeSky(pos));
}

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

@Override
public void onUpdate() {
  super.onUpdate();
  Animation curAni = this.getAnimation();
  boolean climbing = curAni == EntityAnimation.CLIMBING.get() || curAni == EntityAnimation.START_CLIMBING.get();
  if (climbing) {
    BlockPos trunk = new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ);
    for (EnumFacing facing : EnumFacing.HORIZONTALS) {
      if (!world.isAirBlock(trunk.offset(facing)) && this.world.isBlockFullCube(trunk.offset(facing))) {
        this.rotationYawHead = this.prevRotationYawHead = this.rotationYaw = this.prevRotationYaw = facing.getHorizontalAngle();
        this.renderYawOffset = this.prevRenderYawOffset = this.rotationYaw;
        this.newPosRotationIncrements = 0;
        break;
      }
    }
  }
}

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

worldIn.setBlockState(blockpos, Blocks.MOSSY_COBBLESTONE.getDefaultState(), 3);
if(blockpos.getY() <= position.getY() - 1 && !worldIn.isBlockFullCube(blockpos)){
  worldIn.setBlockState(blockpos, Blocks.COBBLESTONE.getDefaultState(), 3);

相关文章

微信公众号

最新文章

更多

World类方法