Package net.minecraft.block
Class Bed
java.lang.Object
net.minecraft.block.BlockBase
net.minecraft.block.Bed
- Mappings:
Namespace Name intermediary net/minecraft/class_485glue class_520server njclient venamed net/minecraft/block/Bed
-
Field Summary
FieldsFields inherited from class net.minecraft.block.BlockBase
ALLOWS_GRASS_UNDER, BED, BEDROCK, BOOKSHELF, BRICKS, BROWN_MUSHROOM, BUTTON, BY_ID, CACTUS, CAKE, CHEST, CLAY, COAL_ORE, COBBLESTONE, COBBLESTONE_STAIRS, COBWEB, CROPS, DANDELION, DEADBUSH, DETECTOR_RAIL, DIAMOND_BLOCK, DIAMOND_ORE, DIRT, DISPENSER, DOUBLE_STONE_SLAB, EMITTANCE, FARMLAND, FENCE, FIRE, FLOWING_LAVA, FLOWING_WATER, FULL_OPAQUE, FURNACE, FURNACE_LIT, GLASS, GLASS_SOUNDS, GLOWSTONE, GOLD_BLOCK, GOLD_ORE, GOLDEN_RAIL, GRASS, GRASS_SOUNDS, GRAVEL, GRAVEL_SOUNDS, hardness, HAS_TILE_ENTITY, ICE, id, IRON_BLOCK, IRON_DOOR, IRON_ORE, isStatEnabled, JACK_O_LANTERN, JUKEBOX, LADDER, LAPIS_LAZULI_BLOCK, LAPIS_LAZULI_ORE, LEAVES, LEVER, LIGHT_OPACITY, LOCKED_CHEST, LOG, material, maxX, maxY, maxZ, METAL_SOUNDS, minX, minY, minZ, MOB_SPAWNER, MOSSY_COBBLESTONE, MOVING_PISTON, NETHERRACK, NO_NOTIFY_ON_META_CHANGE, NOTEBLOCK, OBSIDIAN, particalSpeed, PISTON, PISTON_HEAD, PISTON_SOUNDS, PORTAL, PUMPKIN, RAIL, RED_MUSHROOM, REDSTONE_DUST, REDSTONE_ORE, REDSTONE_ORE_LIT, REDSTONE_REPEATER, REDSTONE_REPEATER_LIT, REDSTONE_TORCH, REDSTONE_TORCH_LIT, resistance, ROSE, SAND, SAND_SOUNDS, SANDSTONE, SAPLING, slipperiness, SNOW, SNOW_BLOCK, SOUL_SAND, sounds, SPONGE, STANDING_SIGN, STICKY_PISTON, STILL_LAVA, STILL_WATER, STONE, STONE_PRESSURE_PLATE, STONE_SLAB, STONE_SOUNDS, SUGAR_CANES, TALLGRASS, texture, TICKS_RANDOMLY, TNT, TORCH, TRAPDOOR, unusedBoolean1, WALL_SIGN, WOOD, WOOD_DOOR, WOOD_SOUNDS, WOOD_STAIRS, WOODEN_PRESSURE_PLATE, WOOL, WOOL_SOUNDS, WORKBENCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDestroyedByExplosion(Level level, int x, int y, int z, int meta, float dropChance) booleancanUse(Level level, int x, int y, int z, PlayerBase player) static Vec3ifindWakeUpPosition(Level level, int x, int y, int z, int tries) intintintintgetTextureForSide(int side, int meta) static booleanisFoot(int meta) booleanbooleanstatic booleanisOccupied(int meta) voidonAdjacentBlockUpdate(Level level, int x, int y, int z, int id) static intorientationOnly(int meta) private voidstatic voidsetOccupied(Level level, int x, int y, int z, boolean isOccupied) voidupdateBoundingBox(BlockView tileView, int x, int y, int z) Methods inherited from class net.minecraft.block.BlockBase
activate, activate, afterBreak, afterPlaced, canGrow, canPlaceAt, canPlaceAt, disableNotifyOnMetaDataChange, disableStat, doesBoxCollide, drop, drop, droppedMeta, getBaseColour, getBlastResistance, getBrightness, getCollisionShape, getColourMultiplier, getDropCount, getEmitsRedstonePower, getHardness, getHardness, getOutlineShape, getRenderPass, getTextureForSide, getTextureForSide, getTickrate, getTranslatedName, getTranslationKey, indirectlyPowered, init, isCollidable, isCollidable, isPowered, isSideRendered, isSolid, isStatEnabled, method_1564, method_1605, onBlockPlaced, onBlockPlaced, onBlockRemoved, onCollideWithEntity, onDestroyedByExplosion, onEntityCollision, onScheduledTick, onSteppedOn, onTileAction, randomDisplayTick, setBlastResistance, setBoundingBox, setHardness, setLightEmittance, setLightOpacity, setSounds, setTicksRandomly, setTranslationKey, setUnbreakable
-
Field Details
-
SPAWN_OFFSETS
public static final int[][] SPAWN_OFFSETS- Mappings:
Namespace Name Mixin selector intermediary field_1999Lnet/minecraft/class_485;field_1999:[[Iglue field_2211Lclass_520;field_2211:[[Iserver aLnj;a:[[Iclient aLve;a:[[Inamed SPAWN_OFFSETSLnet/minecraft/block/Bed;SPAWN_OFFSETS:[[I
-
-
Constructor Details
-
Bed
public Bed(int id) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_485;<init>(I)Vglue <init>Lclass_520;<init>(I)Vserver <init>Lnj;<init>(I)Vclient <init>Lve;<init>(I)Vnamed <init>Lnet/minecraft/block/Bed;<init>(I)V
-
-
Method Details
-
canUse
- Overrides:
canUsein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1608Lnet/minecraft/class_17;method_1608(Lnet/minecraft/class_18;IIILnet/minecraft/class_54;)Zglue method_38Lclass_507;method_38(Lclass_129;IIILclass_172;)Zserver aLna;a(Ldj;IIILem;)Zclient aLuu;a(Lfd;IIILgs;)Znamed canUseLnet/minecraft/block/BlockBase;canUse(Lnet/minecraft/level/Level;IIILnet/minecraft/entity/player/PlayerBase;)Z
-
getTextureForSide
public int getTextureForSide(int side, int meta) - Overrides:
getTextureForSidein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1627Lnet/minecraft/class_17;method_1627(II)Iglue method_96Lclass_507;method_96(II)Iserver aLna;a(II)Iclient aLuu;a(II)Inamed getTextureForSideLnet/minecraft/block/BlockBase;getTextureForSide(II)I
-
getRenderType
- Overrides:
getRenderTypein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1621Lnet/minecraft/class_17;method_1621()Iglue method_652Lclass_507;method_652()Iserver method_1621Lna;method_1621()Iclient bLuu;b()Inamed getRenderTypeLnet/minecraft/block/BlockBase;getRenderType()I
-
isFullCube
public boolean isFullCube()- Overrides:
isFullCubein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1623Lnet/minecraft/class_17;method_1623()Zglue method_66Lclass_507;method_66()Zserver bLna;b()Zclient dLuu;d()Znamed isFullCubeLnet/minecraft/block/BlockBase;isFullCube()Z
-
isFullOpaque
public boolean isFullOpaque()- Overrides:
isFullOpaquein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1620Lnet/minecraft/class_17;method_1620()Zglue method_65Lclass_507;method_65()Zserver aLna;a()Zclient cLuu;c()Znamed isFullOpaqueLnet/minecraft/block/BlockBase;isFullOpaque()Z
-
updateBoundingBox
- Overrides:
updateBoundingBoxin classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1616Lnet/minecraft/class_17;method_1616(Lnet/minecraft/class_14;III)Vglue method_60Lclass_507;method_60(Lclass_584;III)Vserver aLna;a(Lpb;III)Vclient aLuu;a(Lxp;III)Vnamed updateBoundingBoxLnet/minecraft/block/BlockBase;updateBoundingBox(Lnet/minecraft/level/BlockView;III)V
-
onAdjacentBlockUpdate
- Overrides:
onAdjacentBlockUpdatein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1609Lnet/minecraft/class_17;method_1609(Lnet/minecraft/class_18;IIII)Vglue method_39Lclass_507;method_39(Lclass_129;IIII)Vserver bLna;b(Ldj;IIII)Vclient bLuu;b(Lfd;IIII)Vnamed onAdjacentBlockUpdateLnet/minecraft/block/BlockBase;onAdjacentBlockUpdate(Lnet/minecraft/level/Level;IIII)V
-
getDropId
- Overrides:
getDropIdin classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1601Lnet/minecraft/class_17;method_1601(ILjava/util/Random;)Iglue method_19Lclass_507;method_19(ILjava/util/Random;)Iserver aLna;a(ILjava/util/Random;)Iclient aLuu;a(ILjava/util/Random;)Inamed getDropIdLnet/minecraft/block/BlockBase;getDropId(ILjava/util/Random;)I
-
resetBoundingBox
private void resetBoundingBox()- Mappings:
Namespace Name Mixin selector intermediary method_1662Lnet/minecraft/class_485;method_1662()Vglue method_1928Lclass_520;method_1928()Vserver oLnj;o()Vclient rLve;r()Vnamed resetBoundingBoxLnet/minecraft/block/Bed;resetBoundingBox()V
-
orientationOnly
public static int orientationOnly(int meta) - Mappings:
Namespace Name Mixin selector intermediary method_1658Lnet/minecraft/class_485;method_1658(I)Iglue method_1924Lclass_520;method_1924(I)Iserver cLnj;c(I)Iclient dLve;d(I)Inamed orientationOnlyLnet/minecraft/block/Bed;orientationOnly(I)I
-
isFoot
public static boolean isFoot(int meta) - Mappings:
Namespace Name Mixin selector intermediary method_1659Lnet/minecraft/class_485;method_1659(I)Zglue method_1925Lclass_520;method_1925(I)Zserver dLnj;d(I)Zclient eLve;e(I)Znamed isFootLnet/minecraft/block/Bed;isFoot(I)Z
-
isOccupied
public static boolean isOccupied(int meta) - Mappings:
Namespace Name Mixin selector intermediary method_1660Lnet/minecraft/class_485;method_1660(I)Zglue method_1926Lclass_520;method_1926(I)Zserver eLnj;e(I)Zclient fLve;f(I)Znamed isOccupiedLnet/minecraft/block/Bed;isOccupied(I)Z
-
setOccupied
- Mappings:
Namespace Name Mixin selector intermediary method_1657Lnet/minecraft/class_485;method_1657(Lnet/minecraft/class_18;IIIZ)Vglue method_1923Lclass_520;method_1923(Lclass_129;IIIZ)Vserver aLnj;a(Ldj;IIIZ)Vclient aLve;a(Lfd;IIIZ)Vnamed setOccupiedLnet/minecraft/block/Bed;setOccupied(Lnet/minecraft/level/Level;IIIZ)V
-
findWakeUpPosition
- Mappings:
Namespace Name Mixin selector intermediary method_1661Lnet/minecraft/class_485;method_1661(Lnet/minecraft/class_18;IIII)Lnet/minecraft/class_63;glue method_1927Lclass_520;method_1927(Lclass_129;IIII)Lclass_42;server fLnj;f(Ldj;IIII)Lay;client fLve;f(Lfd;IIII)Lbr;named findWakeUpPositionLnet/minecraft/block/Bed;findWakeUpPosition(Lnet/minecraft/level/Level;IIII)Lnet/minecraft/util/Vec3i;
-
beforeDestroyedByExplosion
public void beforeDestroyedByExplosion(Level level, int x, int y, int z, int meta, float dropChance) - Overrides:
beforeDestroyedByExplosionin classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1625Lnet/minecraft/class_17;method_1625(Lnet/minecraft/class_18;IIIIF)Vglue method_683Lclass_507;method_683(Lclass_129;IIIIF)Vserver aLna;a(Ldj;IIIIF)Vclient aLuu;a(Lfd;IIIIF)Vnamed beforeDestroyedByExplosionLnet/minecraft/block/BlockBase;beforeDestroyedByExplosion(Lnet/minecraft/level/Level;IIIIF)V
-
getPistonPushMode
public int getPistonPushMode()- Overrides:
getPistonPushModein classBlockBase- Mappings:
Namespace Name Mixin selector intermediary method_1574Lnet/minecraft/class_17;method_1574()Iglue method_157Lclass_507;method_157()Iserver eLna;e()Iclient hLuu;h()Inamed getPistonPushModeLnet/minecraft/block/BlockBase;getPistonPushMode()I
-