本文整理了Java中net.minecraft.block.Block.getSlipperiness()
方法的一些代码示例,展示了Block.getSlipperiness()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.getSlipperiness()
方法的具体详情如下:
包路径:net.minecraft.block.Block
类名称:Block
方法名:getSlipperiness
暂无
代码示例来源:origin: AlgorithmX2/Chisels-and-Bits
@Override
public float getSlipperiness(
IBlockState state,
IBlockAccess world,
BlockPos pos,
Entity entity )
{
try
{
IBlockState texture = getTileEntity( world, pos ).getBlockState( Blocks.STONE );
if ( texture != null )
{
return texture.getBlock().getSlipperiness( texture, new HarvestWorld( texture ), pos, entity );
}
}
catch ( ExceptionNoTileEntity e )
{
Log.noTileError( e );
}
return super.getSlipperiness( state, world, pos, entity );
}
代码示例来源:origin: TeamLapen/Vampirism
BlockPos underPos = new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ));
net.minecraft.block.state.IBlockState underState = this.world.getBlockState(underPos);
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.98F;
代码示例来源:origin: Glitchfiend/FamiliarFauna
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
代码示例来源:origin: Glitchfiend/FamiliarFauna
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
代码示例来源:origin: Glitchfiend/FamiliarFauna
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
f = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;
内容来源于网络,如有侵权,请联系作者删除!