public class BlockBed extends Block
Modifier and Type | Field and Description |
---|---|
static int[][] |
headBlockToFootBlockMap |
bedrock, blockBed, blockClay, blockConstructorCalled, blockDiamond, blockGold, blockHardness, blockID, blockIndexInTexture, blockLapis, blockMaterial, blockParticleGravity, blockResistance, blocksList, blockSnow, blockSteel, bookShelf, brick, button, cactus, cake, canBlockGrass, chest, cloth, cobblestone, cobblestoneMossy, crops, deadBush, dirt, dispenser, doorSteel, doorWood, enableStats, fence, field_28032_t, fire, glass, glowStone, grass, gravel, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, minX, minY, minZ, mobSpawner, mushroomBrown, mushroomRed, musicBlock, netherrack, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreGold, oreIron, oreLapis, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, rail, railDetector, railPowered, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, slipperiness, slowSand, snow, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stairCompactCobblestone, stairCompactPlanks, stairDouble, stairSingle, stepSound, stone, stoneOvenActive, stoneOvenIdle, tallGrass, tickOnLoad, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, waterMoving, waterStill, web, wood, workbench
Constructor and Description |
---|
BlockBed(int i) |
Modifier and Type | Method and Description |
---|---|
boolean |
blockActivated(World world,
int i,
int j,
int k,
EntityPlayer entityplayer) |
void |
dropBlockAsItemWithChance(World world,
int i,
int j,
int k,
int l,
float f) |
int |
getBlockTextureFromSideAndMetadata(int i,
int j) |
static int |
getDirectionFromMetadata(int i) |
int |
getMobilityFlag() |
static ChunkCoordinates |
getNearestEmptyChunkCoordinates(World world,
int i,
int j,
int k,
int l) |
int |
getRenderType() |
int |
idDropped(int i,
java.util.Random random) |
static boolean |
isBedOccupied(int i) |
static boolean |
isBlockFootOfBed(int i) |
boolean |
isOpaqueCube() |
void |
onNeighborBlockChange(World world,
int i,
int j,
int k,
int l) |
boolean |
renderAsNormalBlock() |
static void |
setBedOccupied(World world,
int i,
int j,
int k,
boolean flag) |
void |
setBlockBoundsBasedOnState(IBlockAccess iblockaccess,
int i,
int j,
int k) |
blockStrength, canBlockStay, canCollideCheck, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, collisionRayTrace, colorMultiplier, damageDropped, disableNeighborNotifyOnMetadataChange, disableStats, dropBlockAsItem_do, dropBlockAsItem, getBlockBrightness, getBlockName, getBlockTexture, getBlockTextureFromSide, getCollidingBoundingBoxes, getCollisionBoundingBoxFromPool, getEnableStats, getExplosionResistance, getHardness, getIsBlockSolid, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, harvestBlock, initializeBlock, isCollidable, isIndirectlyPoweringTo, isPoweringTo, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockPlaced, onBlockPlacedBy, onBlockRemoval, onEntityCollidedWithBlock, onEntityWalking, playBlock, quantityDropped, randomDisplayTick, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockUnbreakable, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTickOnLoad, shouldSideBeRendered, tickRate, translateBlockName, updateTick, velocityToAddToEntity
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
blockActivated
in class Block
public int getBlockTextureFromSideAndMetadata(int i, int j)
getBlockTextureFromSideAndMetadata
in class Block
public int getRenderType()
getRenderType
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
setBlockBoundsBasedOnState
in class Block
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
onNeighborBlockChange
in class Block
public static int getDirectionFromMetadata(int i)
public static boolean isBlockFootOfBed(int i)
public static boolean isBedOccupied(int i)
public static void setBedOccupied(World world, int i, int j, int k, boolean flag)
public static ChunkCoordinates getNearestEmptyChunkCoordinates(World world, int i, int j, int k, int l)
public void dropBlockAsItemWithChance(World world, int i, int j, int k, int l, float f)
dropBlockAsItemWithChance
in class Block
public int getMobilityFlag()
getMobilityFlag
in class Block