Package net.minecraft.block
Class AbstractButtonBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractButtonBlock
- Direct Known Subclasses:
StoneButtonBlock,WoodButtonBlock
- Mappings:
Namespace Name official aidintermediary net/minecraft/class_114named net/minecraft/block/AbstractButtonBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_469, field_483, field_484, field_486, field_487, field_6259, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, side, slipperiness, soundGroup, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceBlockAt(World world, int x, int y, int z) booleanReturns whether the current block emits a redstone signal.intgetStrongRedstonePower(BlockView world, int x, int y, int z, int direction) intgetTickRate(World world) Returns the block's tick rate.intgetWeakRedstonePower(BlockView world, int x, int y, int z, int direction) booleanprivate intmethod_284(World world, int int2, int int3, int int4) private booleanmethod_285(World world, int int2, int int3, int int4) voidmethod_411(World world, int int2, int int3, int int4, Block block, int int5) private voidmethod_4161(World world, int int2, int int3, int int4, int int5) private voidmethod_4162(int int2) private voidmethod_4163(World world, int int2, int int3, int int4) intmethod_4185(World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4, int int6) voidmethod_420(World world, int int2, int int3, int int4, PlayerEntity playerEntity) voidmethod_425(BlockView blockView, int int2, int int3, int int4) booleanmethod_428(World world, int int2, int int3, int int4, int int5) method_454(World world, int int2, int int3, int int4) booleanonActivated(World world, int x, int y, int z, PlayerEntity player, int int2, float float2, float float3, float float4) voidonEntityCollision(World world, int x, int y, int z, Entity entity) voidonNeighborUpdate(World world, int x, int y, int z, Block block) voidvoidregisterTextures(TextureRegistry registry) booleanReturns whether the block can be rendered as a normal blockvoidSets the bounds for the BlockItemMethods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, breakNaturally, canStayPlaced, canStayPlaced, disableStats, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getBlockType, getBonusDrops, getById, getColor, getDropCount, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getPistonInteractionType, getSideTexture, getTexture, getTextureName, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isTransluscent, method_398, method_400, method_405, method_407, method_410, method_412, method_413, method_414, method_415, method_417, method_418, method_4186, method_422, method_424, method_427, method_431, method_435, method_437, method_438, method_446, method_448, method_452, method_455, method_457, method_459, method_461, method_463, method_464, method_468, method_471, method_479, method_4790, method_4793, method_4794, method_4798, method_5546, method_6444, method_6449, onBreak, onDestroyed, requiresSilkTouch, setBlockSoundGroup, setBoundingBox, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, shouldRenderSide, ticksRandomly, usesNeighbourLight
-
Field Details
-
wooden
private final boolean wooden- Mappings:
Namespace Name Mixin selector official aLaid;a:Zintermediary field_4999Lnet/minecraft/class_114;field_4999:Znamed woodenLnet/minecraft/block/AbstractButtonBlock;wooden:Z
-
-
Constructor Details
-
AbstractButtonBlock
protected AbstractButtonBlock(boolean wooden) - Mappings:
Namespace Name Mixin selector official <init>Laid;<init>(Z)Vintermediary <init>Lnet/minecraft/class_114;<init>(Z)Vnamed <init>Lnet/minecraft/block/AbstractButtonBlock;<init>(Z)V
-
-
Method Details
-
method_454
- Overrides:
method_454in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;III)Laye;intermediary method_454Lnet/minecraft/class_197;method_454(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;named method_454Lnet/minecraft/block/Block;method_454(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLaht;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
method_428
- Overrides:
method_428in classBlock- Mappings:
Namespace Name Mixin selector official dLaht;d(Lafm;IIII)Zintermediary method_428Lnet/minecraft/class_197;method_428(Lnet/minecraft/class_1150;IIII)Znamed method_428Lnet/minecraft/block/Block;method_428(Lnet/minecraft/world/World;IIII)Z
-
canPlaceBlockAt
- Overrides:
canPlaceBlockAtin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafm;III)Zintermediary method_434Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Znamed canPlaceBlockAtLnet/minecraft/block/Block;canPlaceBlockAt(Lnet/minecraft/world/World;III)Z
-
method_4185
public int method_4185(World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4, int int6) - Overrides:
method_4185in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIIIFFFI)Iintermediary method_4185Lnet/minecraft/class_197;method_4185(Lnet/minecraft/class_1150;IIIIFFFI)Inamed method_4185Lnet/minecraft/block/Block;method_4185(Lnet/minecraft/world/World;IIIIFFFI)I
-
method_284
- Mappings:
Namespace Name Mixin selector official eLaid;e(Lafm;III)Iintermediary method_284Lnet/minecraft/class_114;method_284(Lnet/minecraft/class_1150;III)Inamed method_284Lnet/minecraft/block/AbstractButtonBlock;method_284(Lnet/minecraft/world/World;III)I
-
onNeighborUpdate
- Overrides:
onNeighborUpdatein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;)Vintermediary method_408Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)Vnamed onNeighborUpdateLnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
-
method_285
- Mappings:
Namespace Name Mixin selector official mLaid;m(Lafm;III)Zintermediary method_285Lnet/minecraft/class_114;method_285(Lnet/minecraft/class_1150;III)Znamed method_285Lnet/minecraft/block/AbstractButtonBlock;method_285(Lnet/minecraft/world/World;III)Z
-
method_425
- Overrides:
method_425in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafw;III)Vintermediary method_425Lnet/minecraft/class_197;method_425(Lnet/minecraft/class_1158;III)Vnamed method_425Lnet/minecraft/block/Block;method_425(Lnet/minecraft/world/BlockView;III)V
-
method_4162
private void method_4162(int int2) - Mappings:
Namespace Name Mixin selector official bLaid;b(I)Vintermediary method_4162Lnet/minecraft/class_114;method_4162(I)Vnamed method_4162Lnet/minecraft/block/AbstractButtonBlock;method_4162(I)V
-
method_420
- Overrides:
method_420in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILxk;)Vintermediary method_420Lnet/minecraft/class_197;method_420(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;)Vnamed method_420Lnet/minecraft/block/Block;method_420(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)V
-
onActivated
public boolean onActivated(World world, int x, int y, int z, PlayerEntity player, int int2, float float2, float float3, float float4) - Overrides:
onActivatedin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILxk;IFFF)Zintermediary method_421Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;IFFF)Znamed onActivatedLnet/minecraft/block/Block;onActivated(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;IFFF)Z
-
method_411
- Overrides:
method_411in classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;I)Vintermediary method_411Lnet/minecraft/class_197;method_411(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;I)Vnamed method_411Lnet/minecraft/block/Block;method_411(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;I)V
-
getWeakRedstonePower
- Overrides:
getWeakRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafw;IIII)Iintermediary method_426Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)Inamed getWeakRedstonePowerLnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
getStrongRedstonePower
- Overrides:
getStrongRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafw;IIII)Iintermediary method_444Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)Inamed getStrongRedstonePowerLnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
emitsRedstonePower
public boolean emitsRedstonePower()Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.- Overrides:
emitsRedstonePowerin classBlock- Returns:
- Whether the current block emits a redstone signal
- Mappings:
Namespace Name Mixin selector official fLaht;f()Zintermediary method_466Lnet/minecraft/class_197;method_466()Znamed emitsRedstonePowerLnet/minecraft/block/Block;emitsRedstonePower()Z
-
onTick
- Overrides:
onTickin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILjava/util/Random;)Vintermediary method_436Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
setBlockItemBounds
public void setBlockItemBounds()Sets the bounds for the BlockItem- Overrides:
setBlockItemBoundsin classBlock- Mappings:
Namespace Name Mixin selector official gLaht;g()Vintermediary method_456Lnet/minecraft/class_197;method_456()Vnamed setBlockItemBoundsLnet/minecraft/block/Block;setBlockItemBounds()V
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILqm;)Vintermediary method_416Lnet/minecraft/class_197;method_416(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;)Vnamed onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
-
method_4163
- Mappings:
Namespace Name Mixin selector official nLaid;n(Lafm;III)Vintermediary method_4163Lnet/minecraft/class_114;method_4163(Lnet/minecraft/class_1150;III)Vnamed method_4163Lnet/minecraft/block/AbstractButtonBlock;method_4163(Lnet/minecraft/world/World;III)V
-
method_4161
- Mappings:
Namespace Name Mixin selector official aLaid;a(Lafm;IIII)Vintermediary method_4161Lnet/minecraft/class_114;method_4161(Lnet/minecraft/class_1150;IIII)Vnamed method_4161Lnet/minecraft/block/AbstractButtonBlock;method_4161(Lnet/minecraft/world/World;IIII)V
-
registerTextures
- Overrides:
registerTexturesin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lps;)Vintermediary method_4791Lnet/minecraft/class_197;method_4791(Lnet/minecraft/class_1558;)Vnamed registerTexturesLnet/minecraft/block/Block;registerTextures(Lnet/minecraft/client/TextureRegistry;)V
-