Java Code Examples for net.minecraft.block.material.Material.blocksLight()

The following are Jave code examples for showing how to use blocksLight() of the net.minecraft.block.material.Material class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DecompiledMinecraft   File: Block.java   Source Code and License Vote up 5 votes
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());
}
 
Example 2
Project: DecompiledMinecraft   File: Block.java   Source Code and License Vote up 5 votes
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());
}
 
Example 3
Project: BaseClient   File: Block.java   Source Code and License Vote up 5 votes
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());
}
 
Example 4
Project: BaseClient   File: Block.java   Source Code and License Vote up 5 votes
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());
}
 
Example 5
Project: Backmemed   File: Block.java   Source Code and License Vote up 5 votes
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();
}
 
Example 6
Project: CustomWorldGen   File: Block.java   Source Code and License Vote up 5 votes
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();
}
 
Example 7
Project: Zombe-Modpack   File: ZWrapper.java   Source Code and License Vote up 4 votes
public static boolean getIsCover(Material mat) {
    //return mat.getCanBlockGrass(); < MCP 9.10
    return mat.blocksLight();
}