Package net.minecraft.block
Class BlockBed
- java.lang.Object
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class BlockBed extends BlockDirectional
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockBed.EnumPartType
-
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 Modifier and Type Field Description static PropertyBool
OCCUPIED
static PropertyEnum<BlockBed.EnumPartType>
PART
-
Fields inherited from class net.minecraft.block.BlockDirectional
FACING
-
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 Constructor Description BlockBed()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bootstrapStates()
protected BlockState
createBlockState()
void
dropBlockAsItemWithChance(World world, BlockPos blockpos, IBlockState iblockstate, float f, int var5)
+ Spawns this Block's drops into the World as EntityItems.IBlockState
getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
+ Get the actual Block state of this Block at the given position.EnumWorldBlockLayer
getBlockLayer()
Item
getItem(World var1, BlockPos var2)
Item
getItemDropped(IBlockState iblockstate, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.int
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueint
getMobilityFlag()
static BlockPos
getSafeExitLocation(World worldIn, BlockPos pos, int tries)
+ Returns a safe BlockPos to disembark the bedIBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockprotected static boolean
hasRoomForPlayer(World worldIn, BlockPos pos)
boolean
isFullCube()
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderboolean
onBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
void
onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
void
onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.void
setBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, func_181623_g, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick
-
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
-
-
-
-
Field Detail
-
PART
public static PropertyEnum<BlockBed.EnumPartType> PART
-
OCCUPIED
public static final PropertyBool OCCUPIED
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
onBlockActivated
public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer, EnumFacing var5, float var6, float var7, float var8)
- Overrides:
onBlockActivated
in classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCube
in classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCube
in classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)
- Overrides:
setBlockBoundsBasedOnState
in classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChange
in classBlock
-
getItemDropped
public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in classBlock
-
getSafeExitLocation
public static BlockPos getSafeExitLocation(World worldIn, BlockPos pos, int tries)
+ Returns a safe BlockPos to disembark the bed
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World world, BlockPos blockpos, IBlockState iblockstate, float f, int var5)
+ Spawns this Block's drops into the World as EntityItems.- Overrides:
dropBlockAsItemWithChance
in classBlock
-
getMobilityFlag
public int getMobilityFlag()
- Overrides:
getMobilityFlag
in classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayer
in classBlock
-
onBlockHarvested
public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
- Overrides:
onBlockHarvested
in classBlock
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMeta
in classBlock
-
getActualState
public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
+ Get the actual Block state of this Block at the given position. This applies properties not visible in the metadata, such as fence connections.- Overrides:
getActualState
in classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromState
in classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
in classBlock
-
-