Class ButtonBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.ButtonBlock

public class ButtonBlock extends Block
Mappings:
Namespace Name
intermediary net/minecraft/class_323
glue class_344
server iz
client oi
named net/minecraft/block/ButtonBlock
  • Constructor Details

    • ButtonBlock

      protected ButtonBlock(int id, int textureId)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_323;<init>(II)V
      glue <init> Lclass_344;<init>(II)V
      server <init> Liz;<init>(II)V
      client <init> Loi;<init>(II)V
      named <init> Lnet/minecraft/block/ButtonBlock;<init>(II)V
  • Method Details

    • getCollisionShape

      public Box getCollisionShape(World world, int x, int y, int z)
      Overrides:
      getCollisionShape in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1624 Lnet/minecraft/class_17;method_1624(Lnet/minecraft/class_18;III)Lnet/minecraft/class_25;
      glue method_67 Lclass_507;method_67(Lclass_129;III)Lclass_113;
      server e Lna;e(Ldj;III)Lcz;
      client e Luu;e(Lfd;III)Leq;
      named getCollisionShape Lnet/minecraft/block/Block;getCollisionShape(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
    • getTickRate

      public int getTickRate()
      Overrides:
      getTickRate in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1565 Lnet/minecraft/class_17;method_1565()I
      glue method_123 Lclass_507;method_123()I
      server c Lna;c()I
      client e Luu;e()I
      named getTickRate Lnet/minecraft/block/Block;getTickRate()I
    • isOpaque

      public boolean isOpaque()
      Overrides:
      isOpaque in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1620 Lnet/minecraft/class_17;method_1620()Z
      glue method_65 Lclass_507;method_65()Z
      server a Lna;a()Z
      client c Luu;c()Z
      named isOpaque Lnet/minecraft/block/Block;isOpaque()Z
    • isFullCube

      public boolean isFullCube()
      Overrides:
      isFullCube in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1623 Lnet/minecraft/class_17;method_1623()Z
      glue method_66 Lclass_507;method_66()Z
      server b Lna;b()Z
      client d Luu;d()Z
      named isFullCube Lnet/minecraft/block/Block;isFullCube()Z
    • canPlaceAt

      public boolean canPlaceAt(World world, int x, int y, int z, int side)
      Overrides:
      canPlaceAt in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1561 Lnet/minecraft/class_17;method_1561(Lnet/minecraft/class_18;IIII)Z
      glue method_1092 Lclass_507;method_1092(Lclass_129;IIII)Z
      server a Lna;a(Ldj;IIII)Z
      client a Luu;a(Lfd;IIII)Z
      named canPlaceAt Lnet/minecraft/block/Block;canPlaceAt(Lnet/minecraft/world/World;IIII)Z
    • canPlaceAt

      public boolean canPlaceAt(World world, int x, int y, int z)
      Overrides:
      canPlaceAt in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1567 Lnet/minecraft/class_17;method_1567(Lnet/minecraft/class_18;III)Z
      glue method_153 Lclass_507;method_153(Lclass_129;III)Z
      server a Lna;a(Ldj;III)Z
      client a Luu;a(Lfd;III)Z
      named canPlaceAt Lnet/minecraft/block/Block;canPlaceAt(Lnet/minecraft/world/World;III)Z
    • onPlaced

      public void onPlaced(World world, int x, int y, int z, int direction)
      Overrides:
      onPlaced in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1606 Lnet/minecraft/class_17;method_1606(Lnet/minecraft/class_18;IIII)V
      glue method_254 Lclass_507;method_254(Lclass_129;IIII)V
      server e Lna;e(Ldj;IIII)V
      client e Luu;e(Lfd;IIII)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;IIII)V
    • getPlacementSide

      private int getPlacementSide(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1047 Lnet/minecraft/class_323;method_1047(Lnet/minecraft/class_18;III)I
      glue method_1405 Lclass_344;method_1405(Lclass_129;III)I
      server g Liz;g(Ldj;III)I
      client h Loi;h(Lfd;III)I
      named getPlacementSide Lnet/minecraft/block/ButtonBlock;getPlacementSide(Lnet/minecraft/world/World;III)I
    • neighborUpdate

      public void neighborUpdate(World world, int x, int y, int z, int id)
      Overrides:
      neighborUpdate in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1609 Lnet/minecraft/class_17;method_1609(Lnet/minecraft/class_18;IIII)V
      glue method_39 Lclass_507;method_39(Lclass_129;IIII)V
      server b Lna;b(Ldj;IIII)V
      client b Luu;b(Lfd;IIII)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;IIII)V
    • breakIfCannotPlaceAt

      private boolean breakIfCannotPlaceAt(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1048 Lnet/minecraft/class_323;method_1048(Lnet/minecraft/class_18;III)Z
      glue method_1406 Lclass_344;method_1406(Lclass_129;III)Z
      server h Liz;h(Ldj;III)Z
      client i Loi;i(Lfd;III)Z
      named breakIfCannotPlaceAt Lnet/minecraft/block/ButtonBlock;breakIfCannotPlaceAt(Lnet/minecraft/world/World;III)Z
    • updateBoundingBox

      public void updateBoundingBox(BlockView blockView, int x, int y, int z)
      Overrides:
      updateBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1616 Lnet/minecraft/class_17;method_1616(Lnet/minecraft/class_14;III)V
      glue method_60 Lclass_507;method_60(Lclass_584;III)V
      server a Lna;a(Lpb;III)V
      client a Luu;a(Lxp;III)V
      named updateBoundingBox Lnet/minecraft/block/Block;updateBoundingBox(Lnet/minecraft/world/BlockView;III)V
    • onBlockBreakStart

      public void onBlockBreakStart(World world, int x, int y, int z, PlayerEntity player)
      Overrides:
      onBlockBreakStart in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1610 Lnet/minecraft/class_17;method_1610(Lnet/minecraft/class_18;IIILnet/minecraft/class_54;)V
      glue method_40 Lclass_507;method_40(Lclass_129;IIILclass_172;)V
      server b Lna;b(Ldj;IIILem;)V
      client b Luu;b(Lfd;IIILgs;)V
      named onBlockBreakStart Lnet/minecraft/block/Block;onBlockBreakStart(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)V
    • onUse

      public boolean onUse(World world, int x, int y, int z, PlayerEntity player)
      Overrides:
      onUse in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1608 Lnet/minecraft/class_17;method_1608(Lnet/minecraft/class_18;IIILnet/minecraft/class_54;)Z
      glue method_38 Lclass_507;method_38(Lclass_129;IIILclass_172;)Z
      server a Lna;a(Ldj;IIILem;)Z
      client a Luu;a(Lfd;IIILgs;)Z
      named onUse Lnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)Z
    • onBreak

      public void onBreak(World world, int x, int y, int z)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1630 Lnet/minecraft/class_17;method_1630(Lnet/minecraft/class_18;III)V
      glue method_99 Lclass_507;method_99(Lclass_129;III)V
      server b Lna;b(Ldj;III)V
      client b Luu;b(Lfd;III)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;III)V
    • isEmittingRedstonePowerInDirection

      public boolean isEmittingRedstonePowerInDirection(BlockView blockView, int x, int y, int z, int direction)
      Overrides:
      isEmittingRedstonePowerInDirection in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1568 Lnet/minecraft/class_17;method_1568(Lnet/minecraft/class_14;IIII)Z
      glue method_154 Lclass_507;method_154(Lclass_584;IIII)Z
      server a Lna;a(Lpb;IIII)Z
      client c Luu;c(Lxp;IIII)Z
      named isEmittingRedstonePowerInDirection Lnet/minecraft/block/Block;isEmittingRedstonePowerInDirection(Lnet/minecraft/world/BlockView;IIII)Z
    • canTransferPowerInDirection

      public boolean canTransferPowerInDirection(World world, int x, int y, int z, int direction)
      Overrides:
      canTransferPowerInDirection in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1570 Lnet/minecraft/class_17;method_1570(Lnet/minecraft/class_18;IIII)Z
      glue method_156 Lclass_507;method_156(Lclass_129;IIII)Z
      server d Lna;d(Ldj;IIII)Z
      client d Luu;d(Lfd;IIII)Z
      named canTransferPowerInDirection Lnet/minecraft/block/Block;canTransferPowerInDirection(Lnet/minecraft/world/World;IIII)Z
    • canEmitRedstonePower

      public boolean canEmitRedstonePower()
      Overrides:
      canEmitRedstonePower in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1569 Lnet/minecraft/class_17;method_1569()Z
      glue method_155 Lclass_507;method_155()Z
      server d Lna;d()Z
      client f Luu;f()Z
      named canEmitRedstonePower Lnet/minecraft/block/Block;canEmitRedstonePower()Z
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Called at a frequency based on the return value of Block.getTickRate(). This method will be called approximately Block.getTickRate() times per second.
      Overrides:
      onTick in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1602 Lnet/minecraft/class_17;method_1602(Lnet/minecraft/class_18;IIILjava/util/Random;)V
      glue method_20 Lclass_507;method_20(Lclass_129;IIILjava/util/Random;)V
      server a Lna;a(Ldj;IIILjava/util/Random;)V
      client a Luu;a(Lfd;IIILjava/util/Random;)V
      named onTick Lnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • setupRenderBoundingBox

      @Environment(CLIENT) public void setupRenderBoundingBox()
      Overrides:
      setupRenderBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1605 Lnet/minecraft/class_17;method_1605()V
      glue method_217 Lclass_507;method_217()V
      server method_1605 Lna;method_1605()V
      client g Luu;g()V
      named setupRenderBoundingBox Lnet/minecraft/block/Block;setupRenderBoundingBox()V