Class 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)
    • 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.
      • 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.