Class TorchBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.TorchBlock
Direct Known Subclasses:
RedstoneTorchBlock

public class TorchBlock extends Block
Mappings:
Namespace Name
intermediary net/minecraft/class_494
glue class_529
server np
client vm
named net/minecraft/block/TorchBlock
  • Constructor Details

    • TorchBlock

      protected TorchBlock(int id, int textureId)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_494;<init>(II)V
      glue <init> Lclass_529;<init>(II)V
      server <init> Lnp;<init>(II)V
      client <init> Lvm;<init>(II)V
      named <init> Lnet/minecraft/block/TorchBlock;<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;
    • 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
    • getRenderType

      @Environment(CLIENT) public int getRenderType()
      Overrides:
      getRenderType in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1621 Lnet/minecraft/class_17;method_1621()I
      glue method_652 Lclass_507;method_652()I
      server method_1621 Lna;method_1621()I
      client b Luu;b()I
      named getRenderType Lnet/minecraft/block/Block;getRenderType()I
    • method_1674

      private boolean method_1674(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1674 Lnet/minecraft/class_494;method_1674(Lnet/minecraft/class_18;III)Z
      glue method_1942 Lclass_529;method_1942(Lclass_129;III)Z
      server g Lnp;g(Ldj;III)Z
      client h Lvm;h(Lfd;III)Z
      named method_1674 Lnet/minecraft/block/TorchBlock;method_1674(Lnet/minecraft/world/World;III)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
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Called at a frequency based on the return value of getTickrate(). This method will be called approximately 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
    • onPlaced

      public void onPlaced(World world, int x, int y, int z)
      Overrides:
      onPlaced in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1611 Lnet/minecraft/class_17;method_1611(Lnet/minecraft/class_18;III)V
      glue method_41 Lclass_507;method_41(Lclass_129;III)V
      server c Lna;c(Ldj;III)V
      client c Luu;c(Lfd;III)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;III)V
    • 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
    • method_1675

      private boolean method_1675(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1675 Lnet/minecraft/class_494;method_1675(Lnet/minecraft/class_18;III)Z
      glue method_1943 Lclass_529;method_1943(Lclass_129;III)Z
      server h Lnp;h(Ldj;III)Z
      client i Lvm;i(Lfd;III)Z
      named method_1675 Lnet/minecraft/block/TorchBlock;method_1675(Lnet/minecraft/world/World;III)Z
    • raycast

      public HitResult raycast(World world, int x, int y, int z, Vec3d startPos, Vec3d endPos)
      Overrides:
      raycast in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1564 Lnet/minecraft/class_17;method_1564(Lnet/minecraft/class_18;IIILnet/minecraft/class_26;Lnet/minecraft/class_26;)Lnet/minecraft/class_27;
      glue method_1225 Lclass_507;method_1225(Lclass_129;IIILclass_45;Lclass_45;)Lclass_518;
      server a Lna;a(Ldj;IIILba;Lba;)Lnh;
      client a Luu;a(Lfd;IIILbt;Lbt;)Lvf;
      named raycast Lnet/minecraft/block/Block;raycast(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/HitResult;
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random random)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1617 Lnet/minecraft/class_17;method_1617(Lnet/minecraft/class_18;IIILjava/util/Random;)V
      glue method_62 Lclass_507;method_62(Lclass_129;IIILjava/util/Random;)V
      server method_1617 Lna;method_1617(Ldj;IIILjava/util/Random;)V
      client b Luu;b(Lfd;IIILjava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V