MaterialPortal .java

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

net.minecraft.block.materialclass34 linescommonextends Material660 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

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

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