Package net.minecraft.block
Class BlockBasePressurePlate
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockBasePressurePlate
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockPressurePlate,BlockPressurePlateWeighted
public abstract class BlockBasePressurePlate extends Block
-
-
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 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 Modifier Constructor Description protectedBlockBasePressurePlate(Material materialIn)protectedBlockBasePressurePlate(Material parMaterial, MapColor parMapColor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbreakBlock(World world, BlockPos blockpos, IBlockState iblockstate)booleancanPlaceBlockAt(World world, BlockPos blockpos)booleancanProvidePower()+ Can this block provide power.protected abstract intcomputeRedstoneStrength(World var1, BlockPos var2)booleanfunc_181623_g()AxisAlignedBBgetCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)intgetMobilityFlag()protected abstract intgetRedstoneStrength(IBlockState var1)protected AxisAlignedBBgetSensitiveAABB(BlockPos pos)+ Returns the cubic AABB inset by 1/8 on all sidesintgetStrongPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)intgetWeakPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderbooleanisPassable(IBlockAccess var1, BlockPos var2)voidonNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)+ Called when a neighboring block changes.voidrandomTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom random)+ Called randomly when setTickRandomly is set to true (used by e.g.voidsetBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)protected voidsetBlockBoundsBasedOnState0(IBlockState state)voidsetBlockBoundsForItemRender()+ Sets the block's bounds for rendering it as an itemprotected abstract IBlockStatesetRedstoneStrength(IBlockState var1, int var2)inttickRate(World worldIn)+ How many world ticks before tickingprotected voidupdateNeighbors(World worldIn, BlockPos pos)+ Notify block and block below of changesprotected voidupdateState(World worldIn, BlockPos pos, IBlockState state, int oldRedstoneStrength)+ Updates the pressure plate when stepped onvoidupdateTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand)-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createBlockState, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMixedBrightnessForBlock, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, toString
-
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
-
-
-
-
Method Detail
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
setBlockBoundsBasedOnState0
protected void setBlockBoundsBasedOnState0(IBlockState state)
-
tickRate
public int tickRate(World worldIn)
+ How many world ticks before ticking
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
- Overrides:
getCollisionBoundingBoxin 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
-
isPassable
public boolean isPassable(IBlockAccess var1, BlockPos var2)
- Overrides:
isPassablein classBlock
-
func_181623_g
public boolean func_181623_g()
- Overrides:
func_181623_gin classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChangein classBlock
-
randomTick
public void randomTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom random)
+ Called randomly when setTickRandomly is set to true (used by e.g. crops to grow, etc.)- Overrides:
randomTickin classBlock
-
updateTick
public void updateTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand)
- Overrides:
updateTickin classBlock
-
updateState
protected void updateState(World worldIn, BlockPos pos, IBlockState state, int oldRedstoneStrength)
+ Updates the pressure plate when stepped on
-
getSensitiveAABB
protected AxisAlignedBB getSensitiveAABB(BlockPos pos)
+ Returns the cubic AABB inset by 1/8 on all sides
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
breakBlockin classBlock
-
updateNeighbors
protected void updateNeighbors(World worldIn, BlockPos pos)
+ Notify block and block below of changes
-
getWeakPower
public int getWeakPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
- Overrides:
getWeakPowerin classBlock
-
getStrongPower
public int getStrongPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
- Overrides:
getStrongPowerin classBlock
-
canProvidePower
public boolean canProvidePower()
+ Can this block provide power. Only wire currently seems to have this change based on its state.- Overrides:
canProvidePowerin classBlock
-
setBlockBoundsForItemRender
public void setBlockBoundsForItemRender()
+ Sets the block's bounds for rendering it as an item- Overrides:
setBlockBoundsForItemRenderin classBlock
-
getMobilityFlag
public int getMobilityFlag()
- Overrides:
getMobilityFlagin classBlock
-
getRedstoneStrength
protected abstract int getRedstoneStrength(IBlockState var1)
-
setRedstoneStrength
protected abstract IBlockState setRedstoneStrength(IBlockState var1, int var2)
-
-