MaterialLogic .java

net.minecraft.block.material.MaterialLogic (class, 35 lines): extends Material. members: blocksLight, blocksMovement, isSolid.

net.minecraft.block.materialclass35 linescommonextends Material697 B

API Surface (3)

boolean isSolid()
boolean blocksLight()
boolean blocksMovement()

Code Graph: Dependencies (2)

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

Full Source

MaterialLogic.java35 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.block.material;
2
3
public class MaterialLogic extends Material
4
{
5
    public MaterialLogic(MapColor color)
6
    {
7
        super(color);
8
        this.setAdventureModeExempt();
9
    }
10
11
    /**
12
     * Returns true if the block is a considered solid. This is true by default.
13
     */
14
    public boolean isSolid()
15
    {
16
        return false;
17
    }
18
19
    /**
20
     * Will prevent grass from growing on dirt underneath and kill any grass below it if it returns true
21
     */
22
    public boolean blocksLight()
23
    {
24
        return false;
25
    }
26
27
    /**
28
     * Returns if this material is considered solid or not
29
     */
30
    public boolean blocksMovement()
31
    {
32
        return false;
33
    }
34
}
35

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