本文整理了Java中net.minecraft.entity.Entity.setInWeb()
方法的一些代码示例,展示了Entity.setInWeb()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.setInWeb()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称: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();
}
}
内容来源于网络,如有侵权,请联系作者删除!