Package net.minecraft.block
Class Material
java.lang.Object
net.minecraft.block.Material
public final class Material extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Material.Builder
-
Field Summary
Fields Modifier and Type Field Description static Material
AGGREGATE
A material or structure formed from a loosely compacted mass of fragments or particles.static Material
AIR
static Material
AMETHYST
static Material
BAMBOO
static Material
BAMBOO_SAPLING
static Material
BARRIER
private boolean
blocksLight
private boolean
blocksMovement
static Material
BUBBLE_COLUMN
private boolean
burnable
static Material
CACTUS
static Material
CAKE
static Material
CARPET
static Material
COBWEB
private MapColor
color
static Material
DECORATION
Material for decoration blocks such as redstone components, torches, flower pots, rails, buttons, and skulls.static Material
DENSE_ICE
Material for ice blocks that do not melt.static Material
EGG
Material for egg blocks, such as dragon and turtle eggs.static Material
FIRE
static Material
GLASS
Material for glass and glass-like blocks (includes sea lanterns and conduits).static Material
GOURD
Material for gourds.static Material
ICE
Material for ice that can melt.static Material
LAVA
static Material
LEAVES
private boolean
liquid
static Material
METAL
Material for blocks metallic in nature, such as cauldrons, bells, iron doors, and iron trapdoors.static Material
NETHER_SHOOTS
Material for crimson and warped roots, as well as Nether sprouts.static Material
NETHER_WOOD
Material for blocks crafted from Nether stems and hyphae.static Material
ORGANIC_PRODUCT
Material for blocks that come from mobs such as honey, slime, or infested blocks.static Material
PISTON
private PistonBehavior
pistonBehavior
static Material
PLANT
Material for plants such as flowers and cropsstatic Material
PORTAL
Material for the various portal blocks.static Material
POWDER_SNOW
static Material
REDSTONE_LAMP
static Material
REPAIR_STATION
Material for blocks that can repair tools, including grindstone and anvils.private boolean
replaceable
static Material
REPLACEABLE_PLANT
static Material
REPLACEABLE_UNDERWATER_PLANT
static Material
SCULK
static Material
SHULKER_BOX
static Material
SNOW_BLOCK
Material for full sized snow blocks.static Material
SNOW_LAYER
Material for non-full blocks of snow.static Material
SOIL
Material for the top layer of soil.private boolean
solid
static Material
SOLID_ORGANIC
Organic blocks that are solid, including hay, target, and grass blocks.static Material
SPONGE
static Material
STONE
Material for blocks that are stone or made from it, and generally prefer to be broken by a pickaxe.static Material
STRUCTURE_VOID
Material for structure void block.static Material
TNT
static Material
UNDERWATER_PLANT
Material for underwater plants without the replaceable property.static Material
UNUSED_PLANT
Not in use, but has foliage color.static Material
WATER
static Material
WOOD
Material for wood logs, and things crafted from them.static Material
WOOL
Material for wool and bed blocks. -
Constructor Summary
Constructors Constructor Description Material(MapColor color, boolean liquid, boolean solid, boolean blocksMovement, boolean blocksLight, boolean breakByHand, boolean burnable, PistonBehavior pistonBehavior)
-
Method Summary
Modifier and Type Method Description boolean
blocksLight()
boolean
blocksMovement()
MapColor
getColor()
PistonBehavior
getPistonBehavior()
boolean
isBurnable()
boolean
isLiquid()
boolean
isReplaceable()
boolean
isSolid()
-
Field Details
-
AIR
-
STRUCTURE_VOID
Material for structure void block. -
PORTAL
Material for the various portal blocks. -
CARPET
-
PLANT
Material for plants such as flowers and crops -
UNDERWATER_PLANT
Material for underwater plants without the replaceable property. -
REPLACEABLE_PLANT
-
NETHER_SHOOTS
Material for crimson and warped roots, as well as Nether sprouts. -
REPLACEABLE_UNDERWATER_PLANT
-
WATER
-
BUBBLE_COLUMN
-
LAVA
-
SNOW_LAYER
Material for non-full blocks of snow. Has the replaceable property. -
FIRE
-
DECORATION
Material for decoration blocks such as redstone components, torches, flower pots, rails, buttons, and skulls. -
COBWEB
-
SCULK
-
REDSTONE_LAMP
-
ORGANIC_PRODUCT
Material for blocks that come from mobs such as honey, slime, or infested blocks. Includes clay but not bone blocks. -
SOIL
Material for the top layer of soil. Path, dirt, podzol, soul soil, farmland and similar. -
SOLID_ORGANIC
Organic blocks that are solid, including hay, target, and grass blocks. -
DENSE_ICE
Material for ice blocks that do not melt. SeeICE
for meltable ice. -
AGGREGATE
A material or structure formed from a loosely compacted mass of fragments or particles. -
SPONGE
-
SHULKER_BOX
-
WOOD
Material for wood logs, and things crafted from them. -
NETHER_WOOD
Material for blocks crafted from Nether stems and hyphae. -
BAMBOO_SAPLING
-
BAMBOO
-
WOOL
Material for wool and bed blocks. -
TNT
-
LEAVES
-
GLASS
Material for glass and glass-like blocks (includes sea lanterns and conduits). -
ICE
Material for ice that can melt. SeeDENSE_ICE
for unmeltable ice. -
CACTUS
-
STONE
Material for blocks that are stone or made from it, and generally prefer to be broken by a pickaxe. -
METAL
Material for blocks metallic in nature, such as cauldrons, bells, iron doors, and iron trapdoors. It also includes non-obvious blocks such as brewing stands and compressed ore blocks, including diamond, redstone, and lapis blocks. -
SNOW_BLOCK
Material for full sized snow blocks. -
REPAIR_STATION
Material for blocks that can repair tools, including grindstone and anvils. -
BARRIER
-
PISTON
-
UNUSED_PLANT
Not in use, but has foliage color. -
GOURD
Material for gourds. Includes the carved pumpkin and jack o' lantern. -
EGG
Material for egg blocks, such as dragon and turtle eggs. -
CAKE
-
AMETHYST
-
POWDER_SNOW
-
color
-
pistonBehavior
-
blocksMovement
private final boolean blocksMovement -
burnable
private final boolean burnable -
liquid
private final boolean liquid -
blocksLight
private final boolean blocksLight -
replaceable
private final boolean replaceable -
solid
private final boolean solid
-
-
Constructor Details
-
Material
public Material(MapColor color, boolean liquid, boolean solid, boolean blocksMovement, boolean blocksLight, boolean breakByHand, boolean burnable, PistonBehavior pistonBehavior)
-
-
Method Details
-
isLiquid
public boolean isLiquid() -
isSolid
public boolean isSolid() -
blocksMovement
public boolean blocksMovement() -
isBurnable
public boolean isBurnable() -
isReplaceable
public boolean isReplaceable() -
blocksLight
public boolean blocksLight() -
getPistonBehavior
-
getColor
-