Package net.minecraft.world.block
Class Block
- java.lang.Object
-
- net.minecraft.world.block.Block
-
- Direct Known Subclasses:
BaseEntityBlock
,BaseLeavesBlock
,BookshelfBlock
,ButtonBlock
,CactusBlock
,CakeBlock
,CauldronBlock
,ClayBlock
,DirtBlock
,DoorBlock
,DragonEggBlock
,EndPortalFrameBlock
,FallingBlock
,FarmlandBlock
,FenceBlock
,FireBlock
,FluidBlock
,GlowstoneBlock
,GrassBlock
,HorizontalDirectionalBlock
,HugeMushroomBlock
,InfestedBlock
,LadderBlock
,LeverBlock
,LockedChestBlock
,LogBlock
,MelonBlock
,MyceliumBlock
,NetherrackBlock
,OreBlock
,OreBlockBlock
,PaneBlock
,PistonBaseBlock
,PistonExtensionBlock
,PlanksBlock
,PlantBlock
,PressurePlateBlock
,RailBlock
,RedstoneLampBlock
,RedstoneOreBlock
,RedstoneWireBlock
,ReedsBlock
,SandstoneBlock
,SlabBlock
,SnowBlock
,SnowLayerBlock
,SoulSandBlock
,SpongeBlock
,StairsBlock
,StoneBlock
,StoneBricksBlock
,TntBlock
,TorchBlock
,TranslucentBlock
,TrapdoorBlock
,VineBlock
,WebBlock
,WoolBlock
,WorkbenchBlock
public class Block extends java.lang.Object
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
blockActivated(World var1, int var2, int var3, int var4, Player var5)
float
blockStrength(Player var1)
boolean
canBlockStay(World var1, int var2, int var3, int var4)
boolean
canCollideCheck(int var1, boolean var2)
boolean
canPlaceBlockAt(World var1, int var2, int var3, int var4)
boolean
canPlaceBlockOnSide(World var1, int var2, int var3, int var4, int var5)
boolean
canProvidePower()
MovingObjectPosition
collisionRayTrace(World var1, int var2, int var3, int var4, Vec3D var5, Vec3D var6)
@net.minecraft.modding.api.Side.Client int
colorMultiplier(IBlockAccess var1, int var2, int var3, int var4)
protected ItemStack
createStackedBlock(int var1)
protected int
damageDropped(int var1)
protected Block
disableStats()
void
dropBlockAsItem(World var1, int var2, int var3, int var4, int var5, int var6)
protected void
dropBlockAsItem_do(World var1, int var2, int var3, int var4, ItemStack var5)
void
dropBlockAsItemWithChance(World var1, int var2, int var3, int var4, int var5, float var6, int var7)
protected boolean
func_50074_q()
@net.minecraft.modding.api.Side.Client float
getAmbientOcclusionLightValue(IBlockAccess var1, int var2, int var3, int var4)
@net.minecraft.modding.api.Side.Client float
getBlockBrightness(IBlockAccess var1, int var2, int var3, int var4)
@net.minecraft.modding.api.Side.Client int
getBlockColor()
java.lang.String
getBlockName()
boolean
getBlocksMovement(IBlockAccess var1, int var2, int var3, int var4)
@net.minecraft.modding.api.Side.Client int
getBlockTexture(IBlockAccess var1, int var2, int var3, int var4, int var5)
int
getBlockTextureFromSide(int var1)
int
getBlockTextureFromSideAndMetadata(int var1, int var2)
void
getCollidingBoundingBoxes(World var1, int var2, int var3, int var4, AxisAlignedBB var5, java.util.ArrayList var6)
AxisAlignedBB
getCollisionBoundingBoxFromPool(World var1, int var2, int var3, int var4)
boolean
getEnableStats()
float
getExplosionResistance(Entity var1)
float
getHardness()
java.util.Map<java.lang.String,java.lang.String>
getMetadataInfo(World world, int x, int y, int z, int blockId, int metadata)
@net.minecraft.modding.api.Side.Client int
getMixedBrightnessForBlock(IBlockAccess var1, int var2, int var3, int var4)
int
getMobilityFlag()
@net.minecraft.modding.api.Side.Client int
getRenderBlockPass()
@net.minecraft.modding.api.Side.Client int
getRenderColor(int var1)
int
getRenderType()
@Client AxisAlignedBB
getSelectedBoundingBoxFromPool(World var1, int var2, int var3, int var4)
void
getSubBlocks(int var1, CreativeTab var2, java.util.List var3)
boolean
getTickRandomly()
void
harvestBlock(World var1, Player var2, int var3, int var4, int var5, int var6)
boolean
hasTileEntity()
int
idDropped(int var1, java.util.Random var2, int var3)
protected void
initializeBlock()
boolean
isBlockSolid(IBlockAccess var1, int var2, int var3, int var4, int var5)
boolean
isCollidable()
boolean
isIndirectlyPoweringTo(World var1, int var2, int var3, int var4, int var5)
static boolean
isNormalCube(int var0)
boolean
isOpaqueCube()
boolean
isPoweringTo(IBlockAccess var1, int var2, int var3, int var4, int var5)
void
onBlockAdded(World var1, int var2, int var3, int var4)
void
onBlockClicked(World var1, int var2, int var3, int var4, Player var5)
void
onBlockDestroyedByExplosion(World var1, int var2, int var3, int var4)
void
onBlockDestroyedByPlayer(World var1, int var2, int var3, int var4, int var5)
void
onBlockPlaced(World var1, int var2, int var3, int var4, int var5)
void
onBlockPlacedBy(World var1, int var2, int var3, int var4, LivingEntity var5)
void
onBlockRemoval(World var1, int var2, int var3, int var4)
void
onEntityCollidedWithBlock(World var1, int var2, int var3, int var4, Entity var5)
void
onEntityWalking(World var1, int var2, int var3, int var4, Entity var5)
void
onFallenUpon(World var1, int var2, int var3, int var4, Entity var5, float var6)
void
onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)
static void
postRegister()
void
powerBlock(World var1, int var2, int var3, int var4, int var5, int var6)
int
quantityDropped(java.util.Random var1)
int
quantityDroppedWithBonus(int var1, java.util.Random var2)
void
randomDisplayTick(World var1, int var2, int var3, int var4, java.util.Random var5)
static void
registerVanilla()
boolean
renderAsNormalBlock()
void
setBlockBounds(float var1, float var2, float var3, float var4, float var5, float var6)
void
setBlockBoundsBasedOnState(IBlockAccess var1, int var2, int var3, int var4)
void
setBlockBoundsForItemRender()
Block
setBlockName(java.lang.String var1)
protected Block
setBlockUnbreakable()
protected Block
setHardness(float var1)
protected Block
setLightOpacity(int var1)
protected Block
setLightValue(float var1)
protected Block
setRequiresSelfNotify()
protected Block
setResistance(float var1)
protected Block
setStepSound(StepSound var1)
protected Block
setTickRandomly(boolean var1)
@net.minecraft.modding.api.Side.Client boolean
shouldSideBeRendered(IBlockAccess var1, int var2, int var3, int var4, int var5)
int
tickRate()
java.lang.String
toString()
java.lang.String
translateBlockName()
void
updateTick(World var1, int var2, int var3, int var4, java.util.Random var5)
void
velocityToAddToEntity(World var1, int var2, int var3, int var4, Entity var5, Vec3D var6)
-
-
-
Field Detail
-
soundPowderFootstep
public static final StepSound soundPowderFootstep
-
soundWoodFootstep
public static final StepSound soundWoodFootstep
-
soundGravelFootstep
public static final StepSound soundGravelFootstep
-
soundGrassFootstep
public static final StepSound soundGrassFootstep
-
soundStoneFootstep
public static final StepSound soundStoneFootstep
-
soundMetalFootstep
public static final StepSound soundMetalFootstep
-
soundGlassFootstep
public static final StepSound soundGlassFootstep
-
soundClothFootstep
public static final StepSound soundClothFootstep
-
soundSandFootstep
public static final StepSound soundSandFootstep
-
blocksList
public static final Block[] blocksList
-
opaqueCubeLookup
public static final boolean[] opaqueCubeLookup
-
lightOpacity
public static final int[] lightOpacity
-
canBlockGrass
public static final boolean[] canBlockGrass
-
lightValue
public static final int[] lightValue
-
requiresSelfNotify
public static final boolean[] requiresSelfNotify
-
useNeighborBrightness
public static final boolean[] useNeighborBrightness
-
stone
public static final Block stone
-
grass
public static final GrassBlock grass
-
dirt
public static final Block dirt
-
cobblestone
public static final Block cobblestone
-
planks
public static final Block planks
-
sapling
public static final Block sapling
-
bedrock
public static final Block bedrock
-
waterMoving
public static final Block waterMoving
-
waterStill
public static final Block waterStill
-
lavaMoving
public static final Block lavaMoving
-
lavaStill
public static final Block lavaStill
-
sand
public static final Block sand
-
gravel
public static final Block gravel
-
oreGold
public static final Block oreGold
-
oreIron
public static final Block oreIron
-
oreCoal
public static final Block oreCoal
-
wood
public static final Block wood
-
leaves
public static final LeavesBlock leaves
-
sponge
public static final Block sponge
-
glass
public static final Block glass
-
oreLapis
public static final Block oreLapis
-
blockLapis
public static final Block blockLapis
-
dispenser
public static final Block dispenser
-
sandStone
public static final Block sandStone
-
music
public static final Block music
-
bed
public static final Block bed
-
railPowered
public static final Block railPowered
-
railDetector
public static final Block railDetector
-
pistonStickyBase
public static final Block pistonStickyBase
-
web
public static final Block web
-
tallGrass
public static final TallGrassBlock tallGrass
-
deadBush
public static final DeadBushBlock deadBush
-
pistonBase
public static final Block pistonBase
-
pistonExtension
public static final PistonExtensionBlock pistonExtension
-
cloth
public static final Block cloth
-
pistonMoving
public static final MovingPistonBlock pistonMoving
-
plantYellow
public static final PlantBlock plantYellow
-
plantRed
public static final PlantBlock plantRed
-
mushroomBrown
public static final PlantBlock mushroomBrown
-
mushroomRed
public static final PlantBlock mushroomRed
-
blockGold
public static final Block blockGold
-
blockSteel
public static final Block blockSteel
-
stairDouble
public static final Block stairDouble
-
stairSingle
public static final Block stairSingle
-
brick
public static final Block brick
-
tnt
public static final Block tnt
-
bookShelf
public static final Block bookShelf
-
cobblestoneMossy
public static final Block cobblestoneMossy
-
obsidian
public static final Block obsidian
-
torchWood
public static final Block torchWood
-
fire
public static final FireBlock fire
-
mobSpawner
public static final Block mobSpawner
-
stairCompactPlanks
public static final Block stairCompactPlanks
-
chest
public static final Block chest
-
redstoneWire
public static final Block redstoneWire
-
oreDiamond
public static final Block oreDiamond
-
blockDiamond
public static final Block blockDiamond
-
workbench
public static final Block workbench
-
crops
public static final Block crops
-
tilledField
public static final Block tilledField
-
stoneOvenIdle
public static final Block stoneOvenIdle
-
stoneOvenActive
public static final Block stoneOvenActive
-
signPost
public static final Block signPost
-
doorWood
public static final Block doorWood
-
ladder
public static final Block ladder
-
rail
public static final Block rail
-
stairCompactCobblestone
public static final Block stairCompactCobblestone
-
signWall
public static final Block signWall
-
lever
public static final Block lever
-
pressurePlateStone
public static final Block pressurePlateStone
-
doorSteel
public static final Block doorSteel
-
pressurePlatePlanks
public static final Block pressurePlatePlanks
-
oreRedstone
public static final Block oreRedstone
-
oreRedstoneGlowing
public static final Block oreRedstoneGlowing
-
torchRedstoneIdle
public static final Block torchRedstoneIdle
-
torchRedstoneActive
public static final Block torchRedstoneActive
-
button
public static final Block button
-
snow
public static final Block snow
-
ice
public static final Block ice
-
blockSnow
public static final Block blockSnow
-
cactus
public static final Block cactus
-
blockClay
public static final Block blockClay
-
reed
public static final Block reed
-
jukebox
public static final Block jukebox
-
fence
public static final Block fence
-
pumpkin
public static final Block pumpkin
-
netherrack
public static final Block netherrack
-
slowSand
public static final Block slowSand
-
glowStone
public static final Block glowStone
-
portal
public static final NetherPortalBlock portal
-
pumpkinLantern
public static final Block pumpkinLantern
-
cake
public static final Block cake
-
redstoneRepeaterIdle
public static final Block redstoneRepeaterIdle
-
redstoneRepeaterActive
public static final Block redstoneRepeaterActive
-
lockedChest
public static final Block lockedChest
-
trapdoor
public static final Block trapdoor
-
silverfish
public static final Block silverfish
-
stoneBrick
public static final Block stoneBrick
-
mushroomCapBrown
public static final Block mushroomCapBrown
-
mushroomCapRed
public static final Block mushroomCapRed
-
fenceIron
public static final Block fenceIron
-
thinGlass
public static final Block thinGlass
-
melon
public static final Block melon
-
pumpkinStem
public static final Block pumpkinStem
-
melonStem
public static final Block melonStem
-
vine
public static final Block vine
-
fenceGate
public static final Block fenceGate
-
stairsBrick
public static final Block stairsBrick
-
stairsStoneBrickSmooth
public static final Block stairsStoneBrickSmooth
-
mycelium
public static final MyceliumBlock mycelium
-
waterlily
public static final Block waterlily
-
netherBrick
public static final Block netherBrick
-
netherFence
public static final Block netherFence
-
stairsNetherBrick
public static final Block stairsNetherBrick
-
netherStalk
public static final Block netherStalk
-
enchantmentTable
public static final Block enchantmentTable
-
brewingStand
public static final Block brewingStand
-
cauldron
public static final Block cauldron
-
endPortal
public static final Block endPortal
-
endPortalFrame
public static final Block endPortalFrame
-
whiteStone
public static final Block whiteStone
-
dragonEgg
public static final Block dragonEgg
-
redstoneLampIdle
public static final Block redstoneLampIdle
-
redstoneLampActive
public static final Block redstoneLampActive
-
blockIndexInTexture
public int blockIndexInTexture
-
blockID
public final int blockID
-
blockHardness
protected float blockHardness
-
blockResistance
protected float blockResistance
-
blockConstructorCalled
protected boolean blockConstructorCalled
-
enableStats
protected boolean enableStats
-
needsRandomTick
protected boolean needsRandomTick
-
isBlockContainer
protected boolean isBlockContainer
-
minX
public double minX
-
minY
public double minY
-
minZ
public double minZ
-
maxX
public double maxX
-
maxY
public double maxY
-
maxZ
public double maxZ
-
stepSound
public StepSound stepSound
-
blockParticleGravity
public float blockParticleGravity
-
blockMaterial
public final Material blockMaterial
-
slipperiness
public float slipperiness
-
-
Method Detail
-
setRequiresSelfNotify
protected Block setRequiresSelfNotify()
-
initializeBlock
protected void initializeBlock()
-
setLightOpacity
protected Block setLightOpacity(int var1)
-
setLightValue
protected Block setLightValue(float var1)
-
setResistance
protected Block setResistance(float var1)
-
isNormalCube
public static boolean isNormalCube(int var0)
-
renderAsNormalBlock
public boolean renderAsNormalBlock()
-
getBlocksMovement
public boolean getBlocksMovement(IBlockAccess var1, int var2, int var3, int var4)
-
getRenderType
public int getRenderType()
-
setHardness
protected Block setHardness(float var1)
-
setBlockUnbreakable
protected Block setBlockUnbreakable()
-
getHardness
public float getHardness()
-
setTickRandomly
protected Block setTickRandomly(boolean var1)
-
getTickRandomly
public boolean getTickRandomly()
-
hasTileEntity
public boolean hasTileEntity()
-
setBlockBounds
public void setBlockBounds(float var1, float var2, float var3, float var4, float var5, float var6)
-
getBlockBrightness
@Client public @net.minecraft.modding.api.Side.Client float getBlockBrightness(IBlockAccess var1, int var2, int var3, int var4)
-
getMixedBrightnessForBlock
@Client public @net.minecraft.modding.api.Side.Client int getMixedBrightnessForBlock(IBlockAccess var1, int var2, int var3, int var4)
-
shouldSideBeRendered
@Client public @net.minecraft.modding.api.Side.Client boolean shouldSideBeRendered(IBlockAccess var1, int var2, int var3, int var4, int var5)
-
isBlockSolid
public boolean isBlockSolid(IBlockAccess var1, int var2, int var3, int var4, int var5)
-
getBlockTexture
@Client public @net.minecraft.modding.api.Side.Client int getBlockTexture(IBlockAccess var1, int var2, int var3, int var4, int var5)
-
getBlockTextureFromSideAndMetadata
public int getBlockTextureFromSideAndMetadata(int var1, int var2)
-
getBlockTextureFromSide
public int getBlockTextureFromSide(int var1)
-
getSelectedBoundingBoxFromPool
@Client public @Client AxisAlignedBB getSelectedBoundingBoxFromPool(World var1, int var2, int var3, int var4)
-
getCollidingBoundingBoxes
public void getCollidingBoundingBoxes(World var1, int var2, int var3, int var4, AxisAlignedBB var5, java.util.ArrayList var6)
-
getCollisionBoundingBoxFromPool
public AxisAlignedBB getCollisionBoundingBoxFromPool(World var1, int var2, int var3, int var4)
-
isOpaqueCube
public boolean isOpaqueCube()
-
canCollideCheck
public boolean canCollideCheck(int var1, boolean var2)
-
isCollidable
public boolean isCollidable()
-
updateTick
public void updateTick(World var1, int var2, int var3, int var4, java.util.Random var5)
-
randomDisplayTick
@Client public void randomDisplayTick(World var1, int var2, int var3, int var4, java.util.Random var5)
-
onBlockDestroyedByPlayer
public void onBlockDestroyedByPlayer(World var1, int var2, int var3, int var4, int var5)
-
onNeighborBlockChange
public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)
-
tickRate
public int tickRate()
-
onBlockAdded
public void onBlockAdded(World var1, int var2, int var3, int var4)
-
onBlockRemoval
public void onBlockRemoval(World var1, int var2, int var3, int var4)
-
quantityDropped
public int quantityDropped(java.util.Random var1)
-
idDropped
public int idDropped(int var1, java.util.Random var2, int var3)
-
blockStrength
public float blockStrength(Player var1)
-
dropBlockAsItem
public final void dropBlockAsItem(World var1, int var2, int var3, int var4, int var5, int var6)
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World var1, int var2, int var3, int var4, int var5, float var6, int var7)
-
dropBlockAsItem_do
protected void dropBlockAsItem_do(World var1, int var2, int var3, int var4, ItemStack var5)
-
damageDropped
protected int damageDropped(int var1)
-
getExplosionResistance
public float getExplosionResistance(Entity var1)
-
collisionRayTrace
public MovingObjectPosition collisionRayTrace(World var1, int var2, int var3, int var4, Vec3D var5, Vec3D var6)
-
onBlockDestroyedByExplosion
public void onBlockDestroyedByExplosion(World var1, int var2, int var3, int var4)
-
getRenderBlockPass
@Client public @net.minecraft.modding.api.Side.Client int getRenderBlockPass()
-
canPlaceBlockOnSide
public boolean canPlaceBlockOnSide(World var1, int var2, int var3, int var4, int var5)
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World var1, int var2, int var3, int var4)
-
blockActivated
public boolean blockActivated(World var1, int var2, int var3, int var4, Player var5)
-
onBlockPlaced
public void onBlockPlaced(World var1, int var2, int var3, int var4, int var5)
-
velocityToAddToEntity
public void velocityToAddToEntity(World var1, int var2, int var3, int var4, Entity var5, Vec3D var6)
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess var1, int var2, int var3, int var4)
-
getBlockColor
@Client public @net.minecraft.modding.api.Side.Client int getBlockColor()
-
getRenderColor
@Client public @net.minecraft.modding.api.Side.Client int getRenderColor(int var1)
-
colorMultiplier
@Client public @net.minecraft.modding.api.Side.Client int colorMultiplier(IBlockAccess var1, int var2, int var3, int var4)
-
isPoweringTo
public boolean isPoweringTo(IBlockAccess var1, int var2, int var3, int var4, int var5)
-
canProvidePower
public boolean canProvidePower()
-
onEntityCollidedWithBlock
public void onEntityCollidedWithBlock(World var1, int var2, int var3, int var4, Entity var5)
-
isIndirectlyPoweringTo
public boolean isIndirectlyPoweringTo(World var1, int var2, int var3, int var4, int var5)
-
setBlockBoundsForItemRender
public void setBlockBoundsForItemRender()
-
harvestBlock
public void harvestBlock(World var1, Player var2, int var3, int var4, int var5, int var6)
-
func_50074_q
protected boolean func_50074_q()
-
createStackedBlock
protected ItemStack createStackedBlock(int var1)
-
quantityDroppedWithBonus
public int quantityDroppedWithBonus(int var1, java.util.Random var2)
-
canBlockStay
public boolean canBlockStay(World var1, int var2, int var3, int var4)
-
onBlockPlacedBy
public void onBlockPlacedBy(World var1, int var2, int var3, int var4, LivingEntity var5)
-
setBlockName
public Block setBlockName(java.lang.String var1)
-
translateBlockName
public java.lang.String translateBlockName()
-
getBlockName
public java.lang.String getBlockName()
-
powerBlock
public void powerBlock(World var1, int var2, int var3, int var4, int var5, int var6)
-
getEnableStats
public boolean getEnableStats()
-
disableStats
protected Block disableStats()
-
getMobilityFlag
public int getMobilityFlag()
-
getAmbientOcclusionLightValue
@Client public @net.minecraft.modding.api.Side.Client float getAmbientOcclusionLightValue(IBlockAccess var1, int var2, int var3, int var4)
-
onFallenUpon
public void onFallenUpon(World var1, int var2, int var3, int var4, Entity var5, float var6)
-
getMetadataInfo
public java.util.Map<java.lang.String,java.lang.String> getMetadataInfo(World world, int x, int y, int z, int blockId, int metadata)
-
getSubBlocks
public void getSubBlocks(int var1, CreativeTab var2, java.util.List var3)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
registerVanilla
public static void registerVanilla()
-
postRegister
public static void postRegister()
-
-