Class RailBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.RailBlock
Direct Known Subclasses:
DetectorRailBlock

public class RailBlock extends Block
Mappings:
Namespace Name
intermediary net/minecraft/class_16
glue class_360
server jj
client pc
named net/minecraft/block/RailBlock
  • Field Details

    • alwaysStraight

      private final boolean alwaysStraight
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1262 Lnet/minecraft/class_16;field_1262:Z
      glue field_1453 Lclass_360;field_1453:Z
      server a Ljj;a:Z
      client a Lpc;a:Z
      named alwaysStraight Lnet/minecraft/block/RailBlock;alwaysStraight:Z
  • Constructor Details

    • RailBlock

      protected RailBlock(int id, int textureId, boolean alwaysStraight)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_16;<init>(IIZ)V
      glue <init> Lclass_360;<init>(IIZ)V
      server <init> Ljj;<init>(IIZ)V
      client <init> Lpc;<init>(IIZ)V
      named <init> Lnet/minecraft/block/RailBlock;<init>(IIZ)V
  • Method Details

    • isRail

      public static final boolean isRail(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1109 Lnet/minecraft/class_16;method_1109(Lnet/minecraft/class_18;III)Z
      glue method_1466 Lclass_360;method_1466(Lclass_129;III)Z
      server g Ljj;g(Ldj;III)Z
      client h Lpc;h(Lfd;III)Z
      named isRail Lnet/minecraft/block/RailBlock;isRail(Lnet/minecraft/world/World;III)Z
    • isRail

      public static final boolean isRail(int id)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1107 Lnet/minecraft/class_16;method_1107(I)Z
      glue method_1464 Lclass_360;method_1464(I)Z
      server c Ljj;c(I)Z
      client d Lpc;d(I)Z
      named isRail Lnet/minecraft/block/RailBlock;isRail(I)Z
    • isAlwaysStraight

      public boolean isAlwaysStraight()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1108 Lnet/minecraft/class_16;method_1108()Z
      glue method_1465 Lclass_360;method_1465()Z
      server f Ljj;f()Z
      client i Lpc;i()Z
      named isAlwaysStraight Lnet/minecraft/block/RailBlock;isAlwaysStraight()Z
    • 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
    • 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;
    • 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
    • getTexture

      public int getTexture(int side, int meta)
      Overrides:
      getTexture in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1627 Lnet/minecraft/class_17;method_1627(II)I
      glue method_96 Lclass_507;method_96(II)I
      server a Lna;a(II)I
      client a Luu;a(II)I
      named getTexture Lnet/minecraft/block/Block;getTexture(II)I
    • 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
    • getDroppedItemCount

      public int getDroppedItemCount(Random random)
      Overrides:
      getDroppedItemCount in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1603 Lnet/minecraft/class_17;method_1603(Ljava/util/Random;)I
      glue method_21 Lclass_507;method_21(Ljava/util/Random;)I
      server a Lna;a(Ljava/util/Random;)I
      client a Luu;a(Ljava/util/Random;)I
      named getDroppedItemCount Lnet/minecraft/block/Block;getDroppedItemCount(Ljava/util/Random;)I
    • 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)
      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
    • updateShape

      private void updateShape(World world, int x, int y, int z, boolean force)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1104 Lnet/minecraft/class_16;method_1104(Lnet/minecraft/class_18;IIIZ)V
      glue method_1461 Lclass_360;method_1461(Lclass_129;IIIZ)V
      server a Ljj;a(Ldj;IIIZ)V
      client a Lpc;a(Lfd;IIIZ)V
      named updateShape Lnet/minecraft/block/RailBlock;updateShape(Lnet/minecraft/world/World;IIIZ)V
    • isPoweredByConnectedRails

      private boolean isPoweredByConnectedRails(World world, int x, int y, int z, int meta, boolean towardsNegative, int depth)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1103 Lnet/minecraft/class_16;method_1103(Lnet/minecraft/class_18;IIIIZI)Z
      glue method_1460 Lclass_360;method_1460(Lclass_129;IIIIZI)Z
      server a Ljj;a(Ldj;IIIIZI)Z
      client a Lpc;a(Lfd;IIIIZI)Z
      named isPoweredByConnectedRails Lnet/minecraft/block/RailBlock;isPoweredByConnectedRails(Lnet/minecraft/world/World;IIIIZI)Z
    • isPoweredByRail

      private boolean isPoweredByRail(World world, int x, int y, int z, boolean towardsNegative, int depth, int shape)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1105 Lnet/minecraft/class_16;method_1105(Lnet/minecraft/class_18;IIIZII)Z
      glue method_1462 Lclass_360;method_1462(Lclass_129;IIIZII)Z
      server a Ljj;a(Ldj;IIIZII)Z
      client a Lpc;a(Lfd;IIIZII)Z
      named isPoweredByRail Lnet/minecraft/block/RailBlock;isPoweredByRail(Lnet/minecraft/world/World;IIIZII)Z
    • getPistonBehavior

      public int getPistonBehavior()
      Overrides:
      getPistonBehavior in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1574 Lnet/minecraft/class_17;method_1574()I
      glue method_157 Lclass_507;method_157()I
      server e Lna;e()I
      client h Luu;h()I
      named getPistonBehavior Lnet/minecraft/block/Block;getPistonBehavior()I