public final class Material
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
Material.Builder |
コンストラクタと説明 |
---|
Material(MaterialColor materialMapColorIn,
boolean liquid,
boolean solid,
boolean doesBlockMovement,
boolean opaque,
boolean requiresNoToolIn,
boolean canBurnIn,
boolean replaceableIn,
PushReaction mobilityFlag) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
blocksMovement()
Returns if this material is considered solid or not
|
MaterialColor |
getColor()
Retrieves the color index of the block.
|
PushReaction |
getPushReaction() |
boolean |
isFlammable()
Returns if the block can burn or not.
|
boolean |
isLiquid()
Returns if blocks of these materials are liquids.
|
boolean |
isOpaque()
Indicate if the material is opaque
|
boolean |
isReplaceable()
Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.
|
boolean |
isSolid()
Returns true if the block is a considered solid.
|
boolean |
isToolNotRequired()
Returns true if the material can be harvested without a tool (or with the wrong tool)
|
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 PLANTS
public static final Material OCEAN_PLANT
public static final Material TALL_PLANTS
public static final Material SEA_GRASS
public static final Material WATER
public static final Material BUBBLE_COLUMN
public static final Material LAVA
public static final Material SNOW
public static final Material FIRE
public static final Material MISCELLANEOUS
public static final Material WEB
public static final Material REDSTONE_LIGHT
public static final Material CLAY
public static final Material EARTH
public static final Material ORGANIC
public static final Material PACKED_ICE
public static final Material SAND
public static final Material SPONGE
public static final Material SHULKER
public static final Material 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
public static final Material CACTUS
public static final Material ROCK
public static final Material IRON
public static final Material SNOW_BLOCK
public static final Material ANVIL
public static final Material BARRIER
public static final Material PISTON
public static final Material CORAL
public static final Material GOURD
public static final Material DRAGON_EGG
public static final Material CAKE
public Material(MaterialColor materialMapColorIn, boolean liquid, boolean solid, boolean doesBlockMovement, boolean opaque, boolean requiresNoToolIn, boolean canBurnIn, boolean replaceableIn, PushReaction mobilityFlag)
public boolean isLiquid()
public boolean isSolid()
public boolean blocksMovement()
public boolean isFlammable()
public boolean isReplaceable()
public boolean isOpaque()
public boolean isToolNotRequired()
public PushReaction getPushReaction()
public MaterialColor getColor()