BlockBarrier .java

net.minecraft.block.BlockBarrier (class, 50 lines): members: getAmbientOcclusionLightValue, dropBlockAsItemWithChance, getRenderType, isOpaqueCube.

net.minecraft.blockclass50 linescommonextends Block1.2 KB

API Surface (4)

int getRenderType()
boolean isOpaqueCube()
float getAmbientOcclusionLightValue()
void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

BlockBarrier.java50 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.block;
2
3
import net.minecraft.block.material.Material;
4
import net.minecraft.block.state.IBlockState;
5
import net.minecraft.util.BlockPos;
6
import net.minecraft.world.World;
7
8
public class BlockBarrier extends Block
9
{
10
    protected BlockBarrier()
11
    {
12
        super(Material.barrier);
13
        this.setBlockUnbreakable();
14
        this.setResistance(6000001.0F);
15
        this.disableStats();
16
        this.translucent = true;
17
    }
18
19
    /**
20
     * The type of render function called. 3 for standard block models, 2 for TESR's, 1 for liquids, -1 is no render
21
     */
22
    public int getRenderType()
23
    {
24
        return -1;
25
    }
26
27
    /**
28
     * Used to determine ambient occlusion and culling when rebuilding chunks for render
29
     */
30
    public boolean isOpaqueCube()
31
    {
32
        return false;
33
    }
34
35
    /**
36
     * Returns the default ambient occlusion value based on block opacity
37
     */
38
    public float getAmbientOcclusionLightValue()
39
    {
40
        return 1.0F;
41
    }
42
43
    /**
44
     * Spawns this Block's drops into the World as EntityItems.
45
     */
46
    public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
47
    {
48
    }
49
}
50

Deobfuscated MCP 1.8.9 source of BlockBarrier from Marcelektro/MavenMCP-1.8.9 (net/minecraft/block/BlockBarrier.java), stored verbatim.