Package net.minecraft.tileentity
Class TileEntityPiston
- java.lang.Object
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.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)
-
-
Field Summary
-
Fields inherited from class net.minecraft.tileentity.TileEntity
blockType, pos, tileEntityInvalid, worldObj
-
-
Constructor Summary
Constructors Constructor Description TileEntityPiston()
TileEntityPiston(IBlockState pistonStateIn, EnumFacing pistonFacingIn, boolean extendingIn, boolean shouldHeadBeRenderedIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPistonTileEntity()
+ removes a piston's tile entity (and if the piston is moving, stops it)int
getBlockMetadata()
EnumFacing
getFacing()
float
getOffsetX(float ticks)
float
getOffsetY(float ticks)
float
getOffsetZ(float ticks)
IBlockState
getPistonState()
float
getProgress(float ticks)
+ Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an argumentboolean
isExtending()
+ Returns true if a piston is extendingvoid
readFromNBT(NBTTagCompound nbttagcompound)
boolean
shouldPistonHeadBeRendered()
void
update()
+ Like the old updateEntity(), except more generic.void
writeToNBT(NBTTagCompound nbttagcompound)
-
Methods inherited from class net.minecraft.tileentity.TileEntity
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, receiveClientEvent, setPos, setWorldObj, updateContainingBlockInfo, validate
-
-
-
-
Constructor Detail
-
TileEntityPiston
public TileEntityPiston()
-
TileEntityPiston
public TileEntityPiston(IBlockState pistonStateIn, EnumFacing pistonFacingIn, boolean extendingIn, boolean shouldHeadBeRenderedIn)
-
-
Method Detail
-
getPistonState
public IBlockState getPistonState()
-
getBlockMetadata
public int getBlockMetadata()
- Overrides:
getBlockMetadata
in classTileEntity
-
isExtending
public boolean isExtending()
+ Returns true if a piston is extending
-
getFacing
public EnumFacing getFacing()
-
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.
-
readFromNBT
public void readFromNBT(NBTTagCompound nbttagcompound)
- Overrides:
readFromNBT
in classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
- Overrides:
writeToNBT
in classTileEntity
-
-