本文整理匯總了Java中net.minecraft.block.material.Material.blocksLight方法的典型用法代碼示例。如果您正苦於以下問題:Java Material.blocksLight方法的具體用法?Java Material.blocksLight怎麽用?Java Material.blocksLight使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.block.material.Material
的用法示例。
在下文中一共展示了Material.blocksLight方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Block
import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public Block(Material p_i46399_1_, MapColor p_i46399_2_)
{
this.enableStats = true;
this.stepSound = soundTypeStone;
this.blockParticleGravity = 1.0F;
this.slipperiness = 0.6F;
this.blockMaterial = p_i46399_1_;
this.field_181083_K = p_i46399_2_;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
this.fullBlock = this.isOpaqueCube();
this.lightOpacity = this.isOpaqueCube() ? 255 : 0;
this.translucent = !p_i46399_1_.blocksLight();
this.blockState = this.createBlockState();
this.setDefaultState(this.blockState.getBaseState());
}
示例2: Block
import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public Block(Material p_i46399_1_, MapColor p_i46399_2_) {
this.enableStats = true;
this.stepSound = soundTypeStone;
this.blockParticleGravity = 1.0F;
this.slipperiness = 0.6F;
this.blockMaterial = p_i46399_1_;
this.field_181083_K = p_i46399_2_;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
this.fullBlock = this.isOpaqueCube();
this.lightOpacity = this.isOpaqueCube() ? 255 : 0;
this.translucent = !p_i46399_1_.blocksLight();
this.blockState = this.createBlockState();
this.setDefaultState(this.blockState.getBaseState());
}
示例3: Block
import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public Block(Material blockMaterialIn, MapColor blockMapColorIn)
{
this.enableStats = true;
this.blockSoundType = SoundType.STONE;
this.blockParticleGravity = 1.0F;
this.slipperiness = 0.6F;
this.blockMaterial = blockMaterialIn;
this.blockMapColor = blockMapColorIn;
this.blockState = this.createBlockState();
this.setDefaultState(this.blockState.getBaseState());
this.fullBlock = this.getDefaultState().isOpaqueCube();
this.lightOpacity = this.fullBlock ? 255 : 0;
this.translucent = !blockMaterialIn.blocksLight();
}
示例4: getIsCover
import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public static boolean getIsCover(Material mat) {
//return mat.getCanBlockGrass(); < MCP 9.10
return mat.blocksLight();
}