Package net.minecraft.block.material
Class Material
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.material.Material
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
MaterialLiquid
,MaterialLogic
,MaterialPortal
,MaterialTransparent
public class Material extends PluginData
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description static Material
air
static Material
anvil
static Material
barrier
static Material
cactus
static Material
cake
static Material
carpet
static Material
circuits
static Material
clay
static Material
cloth
static Material
coral
static Material
craftedSnow
+ The material for crafted snow.static Material
dragonEgg
static Material
fire
static Material
glass
static Material
gourd
static Material
grass
static Material
ground
static Material
ice
static Material
iron
static Material
lava
static Material
leaves
static Material
packedIce
static Material
piston
+ Pistons' material.static Material
plants
static Material
portal
static Material
redstoneLight
static Material
rock
static Material
sand
static Material
snow
static Material
sponge
static Material
tnt
static Material
vine
static Material
water
static Material
web
static Material
wood
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
blocksLight()
+ Will prevent grass from growing on dirt underneath and kill any grass below it if it returns trueboolean
blocksMovement()
+ Returns if this material is considered solid or notboolean
getCanBurn()
+ Returns if the block can burn or not.MapColor
getMaterialMapColor()
+ Retrieves the color index of the block.int
getMaterialMobility()
+ Returns the mobility information of the material, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons.boolean
isLiquid()
+ Returns if blocks of these materials are liquids.boolean
isOpaque()
+ Indicate if the material is opaqueboolean
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)void
loadPluginData(BaseData data)
PluginData
makePluginData()
static PluginData
makePluginDataStatic()
protected Material
setAdventureModeExempt()
+protected Material
setBurning()
+ Set the canBurn bool to True and return the current object.protected Material
setImmovableMobility()
+ This type of material can't be pushed, and pistons are blocked to move.protected Material
setNoPushMobility()
+ This type of material can't be pushed, but pistons can move over it.Material
setReplaceable()
+ Setsreplaceable
to true.protected Material
setRequiresTool()
+ Makes blocks with this material require the correct tool to be harvested.-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Field Detail
-
air
public static final Material air
-
grass
public static final Material grass
-
ground
public static final Material ground
-
wood
public static final Material wood
-
rock
public static final Material rock
-
iron
public static final Material iron
-
anvil
public static final Material anvil
-
water
public static final Material water
-
lava
public static final Material lava
-
leaves
public static final Material leaves
-
plants
public static final Material plants
-
vine
public static final Material vine
-
sponge
public static final Material sponge
-
cloth
public static final Material cloth
-
fire
public static final Material fire
-
sand
public static final Material sand
-
circuits
public static final Material circuits
-
carpet
public static final Material carpet
-
glass
public static final Material glass
-
redstoneLight
public static final Material redstoneLight
-
tnt
public static final Material tnt
-
coral
public static final Material coral
-
ice
public static final Material ice
-
packedIce
public static final Material packedIce
-
snow
public static final Material snow
-
craftedSnow
public static final Material craftedSnow
+ The material for crafted snow.
-
cactus
public static final Material cactus
-
clay
public static final Material clay
-
gourd
public static final Material gourd
-
dragonEgg
public static final Material dragonEgg
-
portal
public static final Material portal
-
cake
public static final Material cake
-
web
public static final Material web
-
piston
public static final Material piston
+ Pistons' material.
-
barrier
public static final Material barrier
-
-
Constructor Detail
-
Material
public Material(MapColor color)
-
-
Method Detail
-
makePluginDataStatic
public static PluginData makePluginDataStatic()
-
loadPluginData
public void loadPluginData(BaseData data)
-
makePluginData
public PluginData makePluginData()
-
isLiquid
public boolean isLiquid()
+ Returns if blocks of these materials are liquids.
-
isSolid
public boolean isSolid()
+ Returns true if the block is a considered solid. This is true by default.
-
blocksLight
public boolean blocksLight()
+ Will prevent grass from growing on dirt underneath and kill any grass below it if it returns true
-
blocksMovement
public boolean blocksMovement()
+ Returns if this material is considered solid or not
-
setRequiresTool
protected Material setRequiresTool()
+ Makes blocks with this material require the correct tool to be harvested.
-
setBurning
protected Material setBurning()
+ Set the canBurn bool to True and return the current object.
-
getCanBurn
public boolean getCanBurn()
+ Returns if the block can burn or not.
-
setReplaceable
public Material setReplaceable()
+ Setsreplaceable
to true.
-
isReplaceable
public boolean isReplaceable()
+ Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.
-
isOpaque
public boolean isOpaque()
+ Indicate if the material is opaque
-
isToolNotRequired
public boolean isToolNotRequired()
+ Returns true if the material can be harvested without a tool (or with the wrong tool)
-
getMaterialMobility
public int getMaterialMobility()
+ Returns the mobility information of the material, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons.
-
setNoPushMobility
protected Material setNoPushMobility()
+ This type of material can't be pushed, but pistons can move over it.
-
setImmovableMobility
protected Material setImmovableMobility()
+ This type of material can't be pushed, and pistons are blocked to move.
-
setAdventureModeExempt
protected Material setAdventureModeExempt()
+- See Also:
#isAdventureModeExempt()
-
getMaterialMapColor
public MapColor getMaterialMapColor()
+ Retrieves the color index of the block. This is is the same color used by vanilla maps to represent this block.
-
-