Class TileEntityPiston

  • All Implemented Interfaces:
    ITickable

    public class TileEntityPiston
    extends TileEntity
    implements ITickable
    + 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

      • TileEntityPiston

        public TileEntityPiston()
      • TileEntityPiston

        public TileEntityPiston​(IBlockState pistonStateIn,
                                EnumFacing pistonFacingIn,
                                boolean extendingIn,
                                boolean shouldHeadBeRenderedIn)
    • Method Detail

      • isExtending

        public boolean isExtending()
        + Returns true if a piston is extending
      • shouldPistonHeadBeRendered

        public boolean shouldPistonHeadBeRendered()
      • getProgress

        public float getProgress​(float ticks)
        + Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an argument
      • getOffsetX

        public float getOffsetX​(float ticks)
      • getOffsetY

        public float getOffsetY​(float ticks)
      • getOffsetZ

        public float getOffsetZ​(float ticks)
      • clearPistonTileEntity

        public void clearPistonTileEntity()
        + removes a piston's tile entity (and if the piston is moving, stops it)
      • update

        public void update()
        + Like the old updateEntity(), except more generic.
        Specified by:
        update in interface ITickable