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 protected
BlockBasePressurePlate(Material materialIn)
protected
BlockBasePressurePlate(Material parMaterial, MapColor parMapColor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
breakBlock(World world, BlockPos blockpos, IBlockState iblockstate)
boolean
canPlaceBlockAt(World world, BlockPos blockpos)
boolean
canProvidePower()
+ Can this block provide power.protected abstract int
computeRedstoneStrength(World var1, BlockPos var2)
boolean
func_181623_g()
AxisAlignedBB
getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
int
getMobilityFlag()
protected abstract int
getRedstoneStrength(IBlockState var1)
protected AxisAlignedBB
getSensitiveAABB(BlockPos pos)
+ Returns the cubic AABB inset by 1/8 on all sidesint
getStrongPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
int
getWeakPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
boolean
isFullCube()
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderboolean
isPassable(IBlockAccess var1, BlockPos var2)
void
onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.void
randomTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom random)
+ Called randomly when setTickRandomly is set to true (used by e.g.void
setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
protected void
setBlockBoundsBasedOnState0(IBlockState state)
void
setBlockBoundsForItemRender()
+ Sets the block's bounds for rendering it as an itemprotected abstract IBlockState
setRedstoneStrength(IBlockState var1, int var2)
int
tickRate(World worldIn)
+ How many world ticks before tickingprotected void
updateNeighbors(World worldIn, BlockPos pos)
+ Notify block and block below of changesprotected void
updateState(World worldIn, BlockPos pos, IBlockState state, int oldRedstoneStrength)
+ Updates the pressure plate when stepped onvoid
updateTick(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:
setBlockBoundsBasedOnState
in 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:
getCollisionBoundingBox
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCube
in classBlock
-
isPassable
public boolean isPassable(IBlockAccess var1, BlockPos var2)
- Overrides:
isPassable
in classBlock
-
func_181623_g
public boolean func_181623_g()
- Overrides:
func_181623_g
in classBlock
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAt
in classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChange
in 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:
randomTick
in classBlock
-
updateTick
public void updateTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand)
- Overrides:
updateTick
in 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:
breakBlock
in 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:
getWeakPower
in classBlock
-
getStrongPower
public int getStrongPower(IBlockAccess worldIn, BlockPos pos, IBlockState state, EnumFacing side)
- Overrides:
getStrongPower
in classBlock
-
canProvidePower
public boolean canProvidePower()
+ Can this block provide power. Only wire currently seems to have this change based on its state.- Overrides:
canProvidePower
in classBlock
-
setBlockBoundsForItemRender
public void setBlockBoundsForItemRender()
+ Sets the block's bounds for rendering it as an item- Overrides:
setBlockBoundsForItemRender
in classBlock
-
getMobilityFlag
public int getMobilityFlag()
- Overrides:
getMobilityFlag
in classBlock
-
getRedstoneStrength
protected abstract int getRedstoneStrength(IBlockState var1)
-
setRedstoneStrength
protected abstract IBlockState setRedstoneStrength(IBlockState var1, int var2)
-
-