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 Materialairstatic Materialanvilstatic Materialbarrierstatic Materialcactusstatic Materialcakestatic Materialcarpetstatic Materialcircuitsstatic Materialclaystatic Materialclothstatic Materialcoralstatic MaterialcraftedSnow+ The material for crafted snow.static MaterialdragonEggstatic Materialfirestatic Materialglassstatic Materialgourdstatic Materialgrassstatic Materialgroundstatic Materialicestatic Materialironstatic Materiallavastatic Materialleavesstatic MaterialpackedIcestatic Materialpiston+ Pistons' material.static Materialplantsstatic Materialportalstatic MaterialredstoneLightstatic Materialrockstatic Materialsandstatic Materialsnowstatic Materialspongestatic Materialtntstatic Materialvinestatic Materialwaterstatic Materialwebstatic Materialwood
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanblocksLight()+ Will prevent grass from growing on dirt underneath and kill any grass below it if it returns truebooleanblocksMovement()+ Returns if this material is considered solid or notbooleangetCanBurn()+ Returns if the block can burn or not.MapColorgetMaterialMapColor()+ Retrieves the color index of the block.intgetMaterialMobility()+ Returns the mobility information of the material, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons.booleanisLiquid()+ Returns if blocks of these materials are liquids.booleanisOpaque()+ Indicate if the material is opaquebooleanisReplaceable()+ Returns whether the material can be replaced by other blocks when placed - eg snow, vines and tall grass.booleanisSolid()+ Returns true if the block is a considered solid.booleanisToolNotRequired()+ Returns true if the material can be harvested without a tool (or with the wrong tool)voidloadPluginData(BaseData data)PluginDatamakePluginData()static PluginDatamakePluginDataStatic()protected MaterialsetAdventureModeExempt()+protected MaterialsetBurning()+ Set the canBurn bool to True and return the current object.protected MaterialsetImmovableMobility()+ This type of material can't be pushed, and pistons are blocked to move.protected MaterialsetNoPushMobility()+ This type of material can't be pushed, but pistons can move over it.MaterialsetReplaceable()+ Setsreplaceableto true.protected MaterialsetRequiresTool()+ 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()
+ Setsreplaceableto 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.
-
-