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

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

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

World.isBlockFullCube介绍

暂无

代码示例

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

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

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

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

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

  1. @Override
  2. public boolean isBlockFullCube(BlockPos pos) {
  3. return getActualWorld().isBlockFullCube(pos);
  4. }

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

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

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

  1. @Override
  2. public void onUpdate() {
  3. super.onUpdate();
  4. Animation curAni = this.getAnimation();
  5. boolean climbing = curAni == EntityAnimation.CLIMBING.get() || curAni == EntityAnimation.START_CLIMBING.get();
  6. if (climbing) {
  7. BlockPos trunk = new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ);
  8. for (EnumFacing facing : EnumFacing.HORIZONTALS) {
  9. if (!world.isAirBlock(trunk.offset(facing)) && this.world.isBlockFullCube(trunk.offset(facing))) {
  10. this.rotationYawHead = this.prevRotationYawHead = this.rotationYaw = this.prevRotationYaw = facing.getHorizontalAngle();
  11. this.renderYawOffset = this.prevRenderYawOffset = this.rotationYaw;
  12. this.newPosRotationIncrements = 0;
  13. break;
  14. }
  15. }
  16. }
  17. }

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

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

相关文章

World类方法