net.minecraft.entity.Entity.setInWeb()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(91)

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

Entity.setInWeb介绍

暂无

代码示例

代码示例来源:origin: TheGreyGhost/MinecraftByExample

@Override
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
{
 entityIn.setInWeb();
}

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

@Override
public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) {
  entity.isAirBorne = false;
  entity.setInWeb();
}

代码示例来源:origin: Silentine/GrimoireOfGaia

/**
 * Called When an Entity Collided with the Block
 */
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) {
  entityIn.setInWeb();
}

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

@Override
public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) {
  entity.setInWeb();
}

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

@Override
  public void onEntityCollision(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
  {
    // Player will take damage when hitting thatch if fall is over 13 blocks, fall damage is then set to 0.
    entityIn.fall((entityIn.fallDistance - 10), 1.0F); // TODO: 17/4/18 balance fall damage reduction.
    entityIn.fallDistance = 0;
    entityIn.setInWeb();
  }
}

相关文章

微信公众号

最新文章

更多

Entity类方法