當前位置: 首頁>>代碼示例>>Java>>正文


Java Material.blocksLight方法代碼示例

本文整理匯總了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());
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:16,代碼來源:Block.java

示例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());
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:15,代碼來源:Block.java

示例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();
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:15,代碼來源:Block.java

示例4: getIsCover

import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public static boolean getIsCover(Material mat) {
    //return mat.getCanBlockGrass(); < MCP 9.10
    return mat.blocksLight();
}
 
開發者ID:NSExceptional,項目名稱:Zombe-Modpack,代碼行數:5,代碼來源:ZWrapper.java


注:本文中的net.minecraft.block.material.Material.blocksLight方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。