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 classMaterial.Builder -
Field Summary
Fields Modifier and Type Field Description static MaterialAGGREGATEA material or structure formed from a loosely compacted mass of fragments or particles.static MaterialAIRstatic MaterialAMETHYSTstatic MaterialBAMBOOstatic MaterialBAMBOO_SAPLINGstatic MaterialBARRIERprivate booleanblocksLightprivate booleanblocksMovementstatic MaterialBUBBLE_COLUMNprivate booleanburnablestatic MaterialCACTUSstatic MaterialCAKEstatic MaterialCARPETstatic MaterialCOBWEBprivate MapColorcolorstatic MaterialDECORATIONMaterial for decoration blocks such as redstone components, torches, flower pots, rails, buttons, and skulls.static MaterialDENSE_ICEMaterial for ice blocks that do not melt.static MaterialEGGMaterial for egg blocks, such as dragon and turtle eggs.static MaterialFIREstatic MaterialGLASSMaterial for glass and glass-like blocks (includes sea lanterns and conduits).static MaterialGOURDMaterial for gourds.static MaterialICEMaterial for ice that can melt.static MaterialLAVAstatic MaterialLEAVESprivate booleanliquidstatic MaterialMETALMaterial for blocks metallic in nature, such as cauldrons, bells, iron doors, and iron trapdoors.static MaterialNETHER_SHOOTSMaterial for crimson and warped roots, as well as Nether sprouts.static MaterialNETHER_WOODMaterial for blocks crafted from Nether stems and hyphae.static MaterialORGANIC_PRODUCTMaterial for blocks that come from mobs such as honey, slime, or infested blocks.static MaterialPISTONprivate PistonBehaviorpistonBehaviorstatic MaterialPLANTMaterial for plants such as flowers and cropsstatic MaterialPORTALMaterial for the various portal blocks.static MaterialPOWDER_SNOWstatic MaterialREDSTONE_LAMPstatic MaterialREPAIR_STATIONMaterial for blocks that can repair tools, including grindstone and anvils.private booleanreplaceablestatic MaterialREPLACEABLE_PLANTstatic MaterialREPLACEABLE_UNDERWATER_PLANTstatic MaterialSCULKstatic MaterialSHULKER_BOXstatic MaterialSNOW_BLOCKMaterial for full sized snow blocks.static MaterialSNOW_LAYERMaterial for non-full blocks of snow.static MaterialSOILMaterial for the top layer of soil.private booleansolidstatic MaterialSOLID_ORGANICOrganic blocks that are solid, including hay, target, and grass blocks.static MaterialSPONGEstatic MaterialSTONEMaterial for blocks that are stone or made from it, and generally prefer to be broken by a pickaxe.static MaterialSTRUCTURE_VOIDMaterial for structure void block.static MaterialTNTstatic MaterialUNDERWATER_PLANTMaterial for underwater plants without the replaceable property.static MaterialUNUSED_PLANTNot in use, but has foliage color.static MaterialWATERstatic MaterialWOODMaterial for wood logs, and things crafted from them.static MaterialWOOLMaterial 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 booleanblocksLight()booleanblocksMovement()MapColorgetColor()PistonBehaviorgetPistonBehavior()booleanisBurnable()booleanisLiquid()booleanisReplaceable()booleanisSolid()
-
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. SeeICEfor 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_ICEfor 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
-