net.minecraft.block.Block.getSlipperiness()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(152)

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

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;

相关文章

Block类方法