Class AbstractButtonBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractButtonBlock
Direct Known Subclasses:
StoneButtonBlock, WoodButtonBlock

public abstract class AbstractButtonBlock extends Block
Mappings:
Namespace Name
official aid
intermediary net/minecraft/class_114
named net/minecraft/block/AbstractButtonBlock
  • Field Details

    • wooden

      private final boolean wooden
      Mappings:
      Namespace Name Mixin selector
      official a Laid;a:Z
      intermediary field_4999 Lnet/minecraft/class_114;field_4999:Z
      named wooden Lnet/minecraft/block/AbstractButtonBlock;wooden:Z
  • Constructor Details

    • AbstractButtonBlock

      protected AbstractButtonBlock(boolean wooden)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laid;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_114;<init>(Z)V
      named <init> Lnet/minecraft/block/AbstractButtonBlock;<init>(Z)V
  • Method Details

    • method_454

      public Box method_454(World world, int int2, int int3, int int4)
      Overrides:
      method_454 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;III)Laye;
      intermediary method_454 Lnet/minecraft/class_197;method_454(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;
      named method_454 Lnet/minecraft/block/Block;method_454(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • method_428

      public boolean method_428(World world, int int2, int int3, int int4, int int5)
      Overrides:
      method_428 in class Block
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Lafm;IIII)Z
      intermediary method_428 Lnet/minecraft/class_197;method_428(Lnet/minecraft/class_1150;IIII)Z
      named method_428 Lnet/minecraft/block/Block;method_428(Lnet/minecraft/world/World;IIII)Z
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int x, int y, int z)
      Overrides:
      canPlaceBlockAt in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafm;III)Z
      intermediary method_434 Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Z
      named canPlaceBlockAt Lnet/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_4185 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIIFFFI)I
      intermediary method_4185 Lnet/minecraft/class_197;method_4185(Lnet/minecraft/class_1150;IIIIFFFI)I
      named method_4185 Lnet/minecraft/block/Block;method_4185(Lnet/minecraft/world/World;IIIIFFFI)I
    • method_284

      private int method_284(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official e Laid;e(Lafm;III)I
      intermediary method_284 Lnet/minecraft/class_114;method_284(Lnet/minecraft/class_1150;III)I
      named method_284 Lnet/minecraft/block/AbstractButtonBlock;method_284(Lnet/minecraft/world/World;III)I
    • onNeighborUpdate

      public void onNeighborUpdate(World world, int x, int y, int z, Block block)
      Overrides:
      onNeighborUpdate in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaht;)V
      intermediary method_408 Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)V
      named onNeighborUpdate Lnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
    • method_285

      private boolean method_285(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official m Laid;m(Lafm;III)Z
      intermediary method_285 Lnet/minecraft/class_114;method_285(Lnet/minecraft/class_1150;III)Z
      named method_285 Lnet/minecraft/block/AbstractButtonBlock;method_285(Lnet/minecraft/world/World;III)Z
    • method_425

      public void method_425(BlockView blockView, int int2, int int3, int int4)
      Overrides:
      method_425 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafw;III)V
      intermediary method_425 Lnet/minecraft/class_197;method_425(Lnet/minecraft/class_1158;III)V
      named method_425 Lnet/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 b Laid;b(I)V
      intermediary method_4162 Lnet/minecraft/class_114;method_4162(I)V
      named method_4162 Lnet/minecraft/block/AbstractButtonBlock;method_4162(I)V
    • method_420

      public void method_420(World world, int int2, int int3, int int4, PlayerEntity playerEntity)
      Overrides:
      method_420 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILxk;)V
      intermediary method_420 Lnet/minecraft/class_197;method_420(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;)V
      named method_420 Lnet/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:
      onActivated in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILxk;IFFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;IFFF)Z
      named onActivated Lnet/minecraft/block/Block;onActivated(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;IFFF)Z
    • method_411

      public void method_411(World world, int int2, int int3, int int4, Block block, int int5)
      Overrides:
      method_411 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaht;I)V
      intermediary method_411 Lnet/minecraft/class_197;method_411(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;I)V
      named method_411 Lnet/minecraft/block/Block;method_411(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;I)V
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockView world, int x, int y, int z, int direction)
      Overrides:
      getWeakRedstonePower in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafw;IIII)I
      intermediary method_426 Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockView world, int x, int y, int z, int direction)
      Overrides:
      getStrongRedstonePower in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafw;IIII)I
      intermediary method_444 Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)I
      named getStrongRedstonePower Lnet/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:
      emitsRedstonePower in class Block
      Returns:
      Whether the current block emits a redstone signal
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f()Z
      intermediary method_466 Lnet/minecraft/class_197;method_466()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Overrides:
      onTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILjava/util/Random;)V
      intermediary method_436 Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)V
      named onTick Lnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • setBlockItemBounds

      public void setBlockItemBounds()
      Sets the bounds for the BlockItem
      Overrides:
      setBlockItemBounds in class Block
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g()V
      intermediary method_456 Lnet/minecraft/class_197;method_456()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • onEntityCollision

      public void onEntityCollision(World world, int x, int y, int z, Entity entity)
      Overrides:
      onEntityCollision in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILqm;)V
      intermediary method_416 Lnet/minecraft/class_197;method_416(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;)V
      named onEntityCollision Lnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
    • method_4163

      private void method_4163(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official n Laid;n(Lafm;III)V
      intermediary method_4163 Lnet/minecraft/class_114;method_4163(Lnet/minecraft/class_1150;III)V
      named method_4163 Lnet/minecraft/block/AbstractButtonBlock;method_4163(Lnet/minecraft/world/World;III)V
    • method_4161

      private void method_4161(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official a Laid;a(Lafm;IIII)V
      intermediary method_4161 Lnet/minecraft/class_114;method_4161(Lnet/minecraft/class_1150;IIII)V
      named method_4161 Lnet/minecraft/block/AbstractButtonBlock;method_4161(Lnet/minecraft/world/World;IIII)V
    • registerTextures

      @Environment(CLIENT) public void registerTextures(TextureRegistry registry)
      Overrides:
      registerTextures in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lps;)V
      intermediary method_4791 Lnet/minecraft/class_197;method_4791(Lnet/minecraft/class_1558;)V
      named registerTextures Lnet/minecraft/block/Block;registerTextures(Lnet/minecraft/client/TextureRegistry;)V