Package net.minecraft.block
Class BlockPistonMoving
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockContainer
-
- net.minecraft.block.BlockPistonMoving
-
- All Implemented Interfaces:
ITileEntityProvider,org.teavm.jso.JSObject
public class BlockPistonMoving extends BlockContainer
+ 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.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
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 PropertyDirectionFACINGstatic PropertyEnum<BlockPistonExtension.EnumPistonType>TYPE-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Constructor Description BlockPistonMoving()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbootstrapStates()voidbreakBlock(World world, BlockPos blockpos, IBlockState iblockstate)booleancanPlaceBlockAt(World var1, BlockPos var2)booleancanPlaceBlockOnSide(World var1, BlockPos var2, EnumFacing var3)+ Check whether this Block can be placed on the given sideMovingObjectPositioncollisionRayTrace(World var1, BlockPos var2, Vec3 var3, Vec3 var4)+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.protected BlockStatecreateBlockState()TileEntitycreateNewTileEntity(World var1, int var2)+ Returns a new instance of a block's tile entity class.AxisAlignedBBgetBoundingBox(World worldIn, BlockPos pos, IBlockState extendingBlock, float progress, EnumFacing direction)AxisAlignedBBgetCollisionBoundingBox(World world, BlockPos blockpos, IBlockState var3)ItemgetItem(World var1, BlockPos var2)ItemgetItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)+ Get the Item that this Block should drop when harvested.intgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueIBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this BlockbooleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderstatic TileEntitynewTileEntity(IBlockState state, EnumFacing facing, boolean extending, boolean renderHead)voidonBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)+ Called when a player destroys this BlockvoidsetBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)-
Methods inherited from class net.minecraft.block.BlockContainer
func_181086_a, func_181087_e, getRenderType, onBlockEventReceived
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, canCollideCheck, canDropFromExplosion, canProvidePower, canReplace, canSilkHarvest, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick
-
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
-
FACING
public static final PropertyDirection FACING
-
TYPE
public static PropertyEnum<BlockPistonExtension.EnumPistonType> TYPE
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
createNewTileEntity
public TileEntity createNewTileEntity(World var1, int var2)
+ Returns a new instance of a block's tile entity class. Called on placing the block.
-
newTileEntity
public static TileEntity newTileEntity(IBlockState state, EnumFacing facing, boolean extending, boolean renderHead)
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlockin classBlockContainer
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World var1, BlockPos var2)
- Overrides:
canPlaceBlockAtin classBlock
-
canPlaceBlockOnSide
public boolean canPlaceBlockOnSide(World var1, BlockPos var2, EnumFacing var3)
+ Check whether this Block can be placed on the given side- Overrides:
canPlaceBlockOnSidein classBlock
-
onBlockDestroyedByPlayer
public void onBlockDestroyedByPlayer(World world, BlockPos blockpos, IBlockState iblockstate)
+ Called when a player destroys this Block- Overrides:
onBlockDestroyedByPlayerin classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDroppedin classBlock
-
collisionRayTrace
public MovingObjectPosition collisionRayTrace(World var1, BlockPos var2, Vec3 var3, Vec3 var4)
+ Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.- Overrides:
collisionRayTracein classBlock
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
getCollisionBoundingBoxin classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
getBoundingBox
public AxisAlignedBB getBoundingBox(World worldIn, BlockPos pos, IBlockState extendingBlock, float progress, EnumFacing direction)
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
-