Package net.minecraft.world.block
Class BedBlock
- java.lang.Object
-
- net.minecraft.world.block.Block
-
- net.minecraft.world.block.HorizontalDirectionalBlock
-
- net.minecraft.world.block.BedBlock
-
public class BedBlock extends HorizontalDirectionalBlock
-
-
Field Summary
Fields Modifier and Type Field Description static int[][]
headBlockToFootBlockMap
-
Fields inherited from class net.minecraft.world.block.Block
bed, bedrock, blockClay, blockConstructorCalled, blockDiamond, blockGold, blockHardness, blockID, blockIndexInTexture, blockLapis, blockMaterial, blockParticleGravity, blockResistance, blocksList, blockSnow, blockSteel, bookShelf, brewingStand, brick, button, cactus, cake, canBlockGrass, cauldron, chest, cloth, cobblestone, cobblestoneMossy, crops, deadBush, dirt, dispenser, doorSteel, doorWood, dragonEgg, enableStats, enchantmentTable, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, glass, glowStone, grass, gravel, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, melon, melonStem, minX, minY, minZ, mobSpawner, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, needsRandomTick, netherBrick, netherFence, netherrack, netherStalk, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreGold, oreIron, oreLapis, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railDetector, railPowered, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, requiresSelfNotify, sand, sandStone, sapling, signPost, signWall, silverfish, slipperiness, slowSand, snow, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stairCompactCobblestone, stairCompactPlanks, stairDouble, stairsBrick, stairSingle, stairsNetherBrick, stairsStoneBrickSmooth, stepSound, stone, stoneBrick, stoneOvenActive, stoneOvenIdle, tallGrass, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, workbench
-
-
Constructor Summary
Constructors Constructor Description BedBlock(int var1)
-
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)
void
dropBlockAsItemWithChance(World var1, int var2, int var3, int var4, int var5, float var6, int var7)
int
getBlockTextureFromSideAndMetadata(int var1, int var2)
int
getMobilityFlag()
static ChunkCoordinates
getNearestEmptyChunkCoordinates(World var0, int var1, int var2, int var3, int var4)
int
getRenderType()
int
idDropped(int var1, java.util.Random var2, int var3)
static boolean
isBedOccupied(int var0)
static boolean
isBlockFootOfBed(int var0)
boolean
isOpaqueCube()
void
onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)
boolean
renderAsNormalBlock()
static void
setBedOccupied(World var0, int var1, int var2, int var3, boolean var4)
void
setBlockBoundsBasedOnState(IBlockAccess var1, int var2, int var3, int var4)
-
Methods inherited from class net.minecraft.world.block.HorizontalDirectionalBlock
getDirection
-
Methods inherited from class net.minecraft.world.block.Block
blockStrength, canBlockStay, canCollideCheck, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, collisionRayTrace, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem_do, func_50074_q, getAmbientOcclusionLightValue, getBlockBrightness, getBlockColor, getBlockName, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getCollidingBoundingBoxes, getCollisionBoundingBoxFromPool, getEnableStats, getExplosionResistance, getHardness, getMetadataInfo, getMixedBrightnessForBlock, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTickRandomly, harvestBlock, hasTileEntity, initializeBlock, isBlockSolid, isCollidable, isIndirectlyPoweringTo, isNormalCube, isPoweringTo, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockPlaced, onBlockPlacedBy, onBlockRemoval, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, postRegister, powerBlock, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, registerVanilla, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockUnbreakable, setHardness, setLightOpacity, setLightValue, setRequiresSelfNotify, setResistance, setStepSound, setTickRandomly, shouldSideBeRendered, tickRate, toString, translateBlockName, updateTick, velocityToAddToEntity
-
-
-
-
Method Detail
-
blockActivated
public boolean blockActivated(World var1, int var2, int var3, int var4, Player var5)
- Overrides:
blockActivated
in classBlock
-
getBlockTextureFromSideAndMetadata
public int getBlockTextureFromSideAndMetadata(int var1, int var2)
- Overrides:
getBlockTextureFromSideAndMetadata
in classBlock
-
getRenderType
public int getRenderType()
- Overrides:
getRenderType
in classBlock
-
renderAsNormalBlock
public boolean renderAsNormalBlock()
- Overrides:
renderAsNormalBlock
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
- Overrides:
isOpaqueCube
in classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess var1, int var2, int var3, int var4)
- Overrides:
setBlockBoundsBasedOnState
in classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)
- Overrides:
onNeighborBlockChange
in classBlock
-
idDropped
public int idDropped(int var1, java.util.Random var2, int var3)
-
isBlockFootOfBed
public static boolean isBlockFootOfBed(int var0)
-
isBedOccupied
public static boolean isBedOccupied(int var0)
-
setBedOccupied
public static void setBedOccupied(World var0, int var1, int var2, int var3, boolean var4)
-
getNearestEmptyChunkCoordinates
public static ChunkCoordinates getNearestEmptyChunkCoordinates(World var0, int var1, int var2, int var3, int var4)
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World var1, int var2, int var3, int var4, int var5, float var6, int var7)
- Overrides:
dropBlockAsItemWithChance
in classBlock
-
getMobilityFlag
public int getMobilityFlag()
- Overrides:
getMobilityFlag
in classBlock
-
-