import code
This commit is contained in:
45
server/src/main/java/net/minecraft/block/BlockBarrier.java
Normal file
45
server/src/main/java/net/minecraft/block/BlockBarrier.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package net.minecraft.block;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.EnumBlockRenderType;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockBarrier extends Block
|
||||
{
|
||||
protected BlockBarrier()
|
||||
{
|
||||
super(Material.BARRIER);
|
||||
this.setBlockUnbreakable();
|
||||
this.setResistance(6000001.0F);
|
||||
this.disableStats();
|
||||
this.translucent = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of render function called. MODEL for mixed tesr and static model, MODELBLOCK_ANIMATED for TESR-only,
|
||||
* LIQUID for vanilla liquids, INVISIBLE to skip all rendering
|
||||
* @deprecated call via {@link IBlockState#getRenderType()} whenever possible. Implementing/overriding is fine.
|
||||
*/
|
||||
public EnumBlockRenderType getRenderType(IBlockState state)
|
||||
{
|
||||
return EnumBlockRenderType.INVISIBLE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to determine ambient occlusion and culling when rebuilding chunks for render
|
||||
* @deprecated call via {@link IBlockState#isOpaqueCube()} whenever possible. Implementing/overriding is fine.
|
||||
*/
|
||||
public boolean isOpaqueCube(IBlockState state)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Spawns this Block's drops into the World as EntityItems.
|
||||
*/
|
||||
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user