public final class Material extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Material.Builder |
Modifier and Type | Field and Description |
---|---|
static Material |
AGGREGATE
A material or structure formed from a loosely compacted mass of fragments or particles.
|
static Material |
AIR |
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 MaterialColor |
color |
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 crops
|
static Material |
PORTAL
Material for the various portal blocks.
|
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 |
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 |
SUPPORTED
Material for blocks that require a supporting block such as redstone components, torches, flower pots, and skulls.
|
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 and Description |
---|
Material(MaterialColor color,
boolean liquid,
boolean solid,
boolean blocksMovement,
boolean blocksLight,
boolean breakByHand,
boolean burnable,
PistonBehavior pistonBehavior) |
Modifier and Type | Method and Description |
---|---|
boolean |
blocksLight() |
boolean |
blocksMovement() |
MaterialColor |
getColor() |
PistonBehavior |
getPistonBehavior() |
boolean |
isBurnable() |
boolean |
isLiquid() |
boolean |
isReplaceable() |
boolean |
isSolid() |
public static final Material AIR
public static final Material STRUCTURE_VOID
public static final Material PORTAL
public static final Material CARPET
public static final Material PLANT
public static final Material UNDERWATER_PLANT
public static final Material REPLACEABLE_PLANT
public static final Material NETHER_SHOOTS
public static final Material REPLACEABLE_UNDERWATER_PLANT
public static final Material WATER
public static final Material BUBBLE_COLUMN
public static final Material LAVA
public static final Material SNOW_LAYER
public static final Material FIRE
public static final Material SUPPORTED
public static final Material COBWEB
public static final Material REDSTONE_LAMP
public static final Material ORGANIC_PRODUCT
public static final Material SOIL
public static final Material SOLID_ORGANIC
public static final Material DENSE_ICE
ICE
for meltable ice.public static final Material AGGREGATE
public static final Material SPONGE
public static final Material SHULKER_BOX
public static final Material WOOD
public static final Material NETHER_WOOD
public static final Material BAMBOO_SAPLING
public static final Material BAMBOO
public static final Material WOOL
public static final Material TNT
public static final Material LEAVES
public static final Material GLASS
public static final Material ICE
DENSE_ICE
for unmeltable ice.public static final Material CACTUS
public static final Material STONE
public static final Material METAL
public static final Material SNOW_BLOCK
public static final Material REPAIR_STATION
public static final Material BARRIER
public static final Material PISTON
public static final Material UNUSED_PLANT
public static final Material GOURD
public static final Material EGG
public static final Material CAKE
private final MaterialColor color
private final PistonBehavior pistonBehavior
private final boolean blocksMovement
private final boolean burnable
private final boolean liquid
private final boolean blocksLight
private final boolean replaceable
private final boolean solid
public Material(MaterialColor color, boolean liquid, boolean solid, boolean blocksMovement, boolean blocksLight, boolean breakByHand, boolean burnable, PistonBehavior pistonBehavior)
public boolean isLiquid()
public boolean isSolid()
public boolean blocksMovement()
public boolean isBurnable()
public boolean isReplaceable()
public boolean blocksLight()
public PistonBehavior getPistonBehavior()
public MaterialColor getColor()