Package net.minecraft.block
Class ButtonBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.ButtonBlock
- Mappings:
Namespace Name intermediary net/minecraft/class_323glue class_344server izclient oinamed net/minecraft/block/ButtonBlock
-
Field Summary
Fields inherited from class net.minecraft.block.Block
BED, BEDROCK, BLOCKS, BLOCKS_ALLOW_VISION, BLOCKS_IGNORE_META_UPDATE, BLOCKS_LIGHT_LUMINANCE, BLOCKS_LIGHT_OPACITY, BLOCKS_OPAQUE, BLOCKS_RANDOM_TICK, BLOCKS_WITH_ENTITY, BOOKSHELF, BRICKS, BROWN_MUSHROOM, BUTTON, CACTUS, CAKE, CHEST, CLAY, COAL_ORE, COBBLESTONE, COBBLESTONE_STAIRS, COBWEB, constructed, CRAFTING_TABLE, DANDELION, DEAD_BUSH, DEFAULT_SOUND_GROUP, DETECTOR_RAIL, DIAMOND_BLOCK, DIAMOND_ORE, DIRT, DIRT_SOUND_GROUP, DISPENSER, DOOR, DOUBLE_SLAB, FARMLAND, FENCE, FIRE, FLOWING_LAVA, FLOWING_WATER, FURNACE, GLASS, GLASS_SOUND_GROUP, GLOWSTONE, GOLD_BLOCK, GOLD_ORE, GRASS, GRASS_BLOCK, GRAVEL, GRAVEL_SOUND_GROUP, hardness, ICE, id, IRON_BLOCK, IRON_DOOR, IRON_ORE, JACK_O_LANTERN, JUKEBOX, LADDER, LAPIS_BLOCK, LAPIS_ORE, LAVA, LEAVES, LEVER, LIT_FURNACE, LIT_REDSTONE_ORE, LIT_REDSTONE_TORCH, LOCKED_CHEST, LOG, material, maxX, maxY, maxZ, METAL_SOUND_GROUP, minX, minY, minZ, MOSSY_COBBLESTONE, MOVING_PISTON, NETHER_PORTAL, NETHERRACK, NOTE_BLOCK, OBSIDIAN, particleFallSpeedModifier, PISTON, PISTON_HEAD, PLANKS, POWERED_RAIL, POWERED_REPEATER, PUMPKIN, RAIL, RED_MUSHROOM, REDSTONE_ORE, REDSTONE_TORCH, REDSTONE_WIRE, REPEATER, resistance, ROSE, SAND, SAND_SOUND_GROUP, SANDSTONE, SAPLING, shouldTrackStatistics, SIGN, SLAB, slipperiness, SNOW, SNOW_BLOCK, SOUL_SAND, soundGroup, SPAWNER, SPONGE, STICKY_PISTON, STONE, STONE_PRESSURE_PLATE, STONE_SOUND_GROUP, SUGAR_CANE, textureId, TNT, TORCH, TRAPDOOR, WALL_SIGN, WATER, WHEAT, WOOD_SOUND_GROUP, WOODEN_PRESSURE_PLATE, WOODEN_STAIRS, WOOL, WOOL_SOUND_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanPlaceAt(World world, int x, int y, int z) booleancanPlaceAt(World world, int x, int y, int z, int side) booleancanTransferPowerInDirection(World world, int x, int y, int z, int direction) getCollisionShape(World world, int x, int y, int z) intbooleanisEmittingRedstonePower(BlockView blockView, int x, int y, int z, int meta) booleanbooleanisOpaque()private intmethod_1047(World world, int int2, int int3, int int4) private booleanmethod_1048(World world, int int2, int int3, int int4) voidneighborUpdate(World world, int x, int y, int z, int id) voidonBlockBreakStart(World world, int x, int y, int z, PlayerEntity player) voidvoidvoidCalled at a frequency based on the return value ofgetTickrate().booleanonUse(World world, int x, int y, int z, PlayerEntity player) voidvoidupdateBoundingBox(BlockView blockView, int x, int y, int z) Methods inherited from class net.minecraft.block.Block
addIntersectingBoundingBox, afterBreak, applyVelocity, canGrow, disableTrackingStatistics, dropStack, dropStacks, dropStacks, getBlastResistance, getBoundingBox, getBrightness, getColor, getColorMultiplier, getDroppedItemCount, getDroppedItemId, getDroppedItemMeta, getHardness, getHardness, getPistonBehavior, getRenderLayer, getRenderType, getTexture, getTexture, getTextureId, getTranslatedName, getTranslationKey, hasCollision, hasCollision, ignoreMetaUpdates, init, isSideVisible, isSolidBlock, isTrackingStatistics, onBlockAction, onDestroyedByExplosion, onEntityCollision, onMetadataChange, onPlaced, onPlaced, onSteppedOn, randomDisplayTick, raycast, setBoundingBox, setHardness, setLuminance, setOpacity, setResistance, setSoundGroup, setTickRandomly, setTranslationKey, setUnbreakable
-
Constructor Details
-
ButtonBlock
protected ButtonBlock(int int2, int int3)
-
-
Method Details
-
getCollisionShape
- Overrides:
getCollisionShapein classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1624Lnet/minecraft/class_17;method_1624(Lnet/minecraft/class_18;III)Lnet/minecraft/class_25;glue method_67Lclass_507;method_67(Lclass_129;III)Lclass_113;server eLna;e(Ldj;III)Lcz;client eLuu;e(Lfd;III)Leq;named getCollisionShapeLnet/minecraft/block/Block;getCollisionShape(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
-
getTickRate
public int getTickRate()- Overrides:
getTickRatein classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1565Lnet/minecraft/class_17;method_1565()Iglue method_123Lclass_507;method_123()Iserver cLna;c()Iclient eLuu;e()Inamed getTickRateLnet/minecraft/block/Block;getTickRate()I
-
isOpaque
public boolean isOpaque() -
isFullCube
public boolean isFullCube()- Overrides:
isFullCubein classBlock- 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/Block;isFullCube()Z
-
canPlaceAt
- Overrides:
canPlaceAtin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1561Lnet/minecraft/class_17;method_1561(Lnet/minecraft/class_18;IIII)Zglue method_1092Lclass_507;method_1092(Lclass_129;IIII)Zserver aLna;a(Ldj;IIII)Zclient aLuu;a(Lfd;IIII)Znamed canPlaceAtLnet/minecraft/block/Block;canPlaceAt(Lnet/minecraft/world/World;IIII)Z
-
canPlaceAt
- Overrides:
canPlaceAtin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1567Lnet/minecraft/class_17;method_1567(Lnet/minecraft/class_18;III)Zglue method_153Lclass_507;method_153(Lclass_129;III)Zserver aLna;a(Ldj;III)Zclient aLuu;a(Lfd;III)Znamed canPlaceAtLnet/minecraft/block/Block;canPlaceAt(Lnet/minecraft/world/World;III)Z
-
onPlaced
- Overrides:
onPlacedin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1606Lnet/minecraft/class_17;method_1606(Lnet/minecraft/class_18;IIII)Vglue method_254Lclass_507;method_254(Lclass_129;IIII)Vserver eLna;e(Ldj;IIII)Vclient eLuu;e(Lfd;IIII)Vnamed onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;IIII)V
-
method_1047
- Mappings:
Namespace Name Mixin selector intermediary method_1047Lnet/minecraft/class_323;method_1047(Lnet/minecraft/class_18;III)Iglue method_1405Lclass_344;method_1405(Lclass_129;III)Iserver gLiz;g(Ldj;III)Iclient hLoi;h(Lfd;III)Inamed method_1047Lnet/minecraft/block/ButtonBlock;method_1047(Lnet/minecraft/world/World;III)I
-
neighborUpdate
- Overrides:
neighborUpdatein classBlock- 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 neighborUpdateLnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;IIII)V
-
method_1048
- Mappings:
Namespace Name Mixin selector intermediary method_1048Lnet/minecraft/class_323;method_1048(Lnet/minecraft/class_18;III)Zglue method_1406Lclass_344;method_1406(Lclass_129;III)Zserver hLiz;h(Ldj;III)Zclient iLoi;i(Lfd;III)Znamed method_1048Lnet/minecraft/block/ButtonBlock;method_1048(Lnet/minecraft/world/World;III)Z
-
updateBoundingBox
- Overrides:
updateBoundingBoxin classBlock- 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/Block;updateBoundingBox(Lnet/minecraft/world/BlockView;III)V
-
onBlockBreakStart
- Overrides:
onBlockBreakStartin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1610Lnet/minecraft/class_17;method_1610(Lnet/minecraft/class_18;IIILnet/minecraft/class_54;)Vglue method_40Lclass_507;method_40(Lclass_129;IIILclass_172;)Vserver bLna;b(Ldj;IIILem;)Vclient bLuu;b(Lfd;IIILgs;)Vnamed onBlockBreakStartLnet/minecraft/block/Block;onBlockBreakStart(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)V
-
onUse
- Overrides:
onUsein classBlock- 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 onUseLnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)Z
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1630Lnet/minecraft/class_17;method_1630(Lnet/minecraft/class_18;III)Vglue method_99Lclass_507;method_99(Lclass_129;III)Vserver bLna;b(Ldj;III)Vclient bLuu;b(Lfd;III)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;III)V
-
isEmittingRedstonePower
- Overrides:
isEmittingRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1568Lnet/minecraft/class_17;method_1568(Lnet/minecraft/class_14;IIII)Zglue method_154Lclass_507;method_154(Lclass_584;IIII)Zserver aLna;a(Lpb;IIII)Zclient cLuu;c(Lxp;IIII)Znamed isEmittingRedstonePowerLnet/minecraft/block/Block;isEmittingRedstonePower(Lnet/minecraft/world/BlockView;IIII)Z
-
canTransferPowerInDirection
- Overrides:
canTransferPowerInDirectionin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1570Lnet/minecraft/class_17;method_1570(Lnet/minecraft/class_18;IIII)Zglue method_156Lclass_507;method_156(Lclass_129;IIII)Zserver dLna;d(Ldj;IIII)Zclient dLuu;d(Lfd;IIII)Znamed canTransferPowerInDirectionLnet/minecraft/block/Block;canTransferPowerInDirection(Lnet/minecraft/world/World;IIII)Z
-
canEmitRedstonePower
public boolean canEmitRedstonePower()- Overrides:
canEmitRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1569Lnet/minecraft/class_17;method_1569()Zglue method_155Lclass_507;method_155()Zserver dLna;d()Zclient fLuu;f()Znamed canEmitRedstonePowerLnet/minecraft/block/Block;canEmitRedstonePower()Z
-
onTick
Called at a frequency based on the return value ofgetTickrate(). This method will be called approximatelygetTickrate()times per second.- Overrides:
onTickin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1602Lnet/minecraft/class_17;method_1602(Lnet/minecraft/class_18;IIILjava/util/Random;)Vglue method_20Lclass_507;method_20(Lclass_129;IIILjava/util/Random;)Vserver aLna;a(Ldj;IIILjava/util/Random;)Vclient aLuu;a(Lfd;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
setupRenderBoundingBox
- Overrides:
setupRenderBoundingBoxin classBlock- Mappings:
Namespace Name Mixin selector intermediary method_1605Lnet/minecraft/class_17;method_1605()Vglue method_217Lclass_507;method_217()Vserver method_1605Lna;method_1605()Vclient gLuu;g()Vnamed setupRenderBoundingBoxLnet/minecraft/block/Block;setupRenderBoundingBox()V
-