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

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

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

World.notifyNeighborsRespectDebug介绍

暂无

代码示例

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

  1. @Override
  2. public void notifyNeighborsRespectDebug(@Nonnull BlockPos pos, @Nonnull Block blockType, boolean p_175722_3_) {
  3. wrapped.notifyNeighborsRespectDebug(pos, blockType, p_175722_3_);
  4. }

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

  1. @Override
  2. public void notifyNeighborsRespectDebug(BlockPos pos, Block blockType, boolean notifyObservers) {
  3. if (this.worldInfo.getTerrainType() != WorldType.DEBUG_ALL_BLOCK_STATES) {
  4. part.getContainer().getParts().values().forEach(i -> {
  5. if (i != part) {
  6. i.getPart().onPartChanged(i, part);
  7. }
  8. });
  9. }
  10. getActualWorld().notifyNeighborsRespectDebug(pos, blockType, notifyObservers);
  11. }

代码示例来源:origin: P3pp3rF1y/AncientWarfare2

  1. public void setDisguiseState(ItemStack itemStack) {
  2. Block block = Block.getBlockFromItem(itemStack.getItem());
  3. if (block != AWStructureBlocks.SOUND_BLOCK && block.isFullCube(null) && block.isOpaqueCube(null)) {
  4. disguiseState = block.getStateFromMeta(itemStack.getMetadata());
  5. BlockTools.notifyBlockUpdate(this);
  6. world.notifyNeighborsRespectDebug(pos, this.blockType, true);
  7. markDirty();
  8. }
  9. }

代码示例来源:origin: RS485/LogisticsPipes

  1. @Override
  2. public void processPacket(EntityPlayer player) {
  3. final LogisticsSolderingTileEntity tile = this.getTile(player.world, LogisticsSolderingTileEntity.class);
  4. if (tile != null) {
  5. int old = tile.heat;
  6. tile.heat = getInteger();
  7. if ((tile.heat == 0 && old != 0) || (tile.heat != 0 && old == 0)) {
  8. player.world.notifyNeighborsRespectDebug(new BlockPos(getPosX(), getPosY(), getPosZ()), player.world.getBlockState(new BlockPos(getPosX(), getPosY(), getPosZ())).getBlock(), true);
  9. }
  10. }
  11. }
  12. }

代码示例来源:origin: RS485/LogisticsPipes

  1. @Override
  2. public void processPacket(EntityPlayer player) {
  3. IRotationProvider tile = this.getTileOrPipe(player.world, IRotationProvider.class);
  4. if (tile != null) {
  5. tile.setRotation(getInteger());
  6. player.world.notifyNeighborsRespectDebug(new BlockPos(getPosX(), getPosY(), getPosZ()), player.world.getBlockState(new BlockPos(getPosX(), getPosY(), getPosZ())).getBlock(), true);
  7. }
  8. }
  9. }

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

  1. worldIn.notifyNeighborsRespectDebug(pos, FurnitureBlocks.MODERN_BED_BOTTOM, false);
  2. worldIn.notifyNeighborsRespectDebug(otherPos, FurnitureBlocks.MODERN_BED_TOP, false);

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

  1. worldIn.notifyNeighborsRespectDebug(blockpos1, template$blockinfo2.blockState.getBlock(), false);

相关文章

World类方法