Class RailPlacementHelper

java.lang.Object
net.minecraft.block.RailPlacementHelper

public class RailPlacementHelper extends Object
Mappings:
Namespace Name
official csm
intermediary net/minecraft/class_2452
named net/minecraft/block/RailPlacementHelper
  • Field Details

    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a:Lcjw;
      intermediary field_11409 Lnet/minecraft/class_2452;field_11409:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/block/RailPlacementHelper;world:Lnet/minecraft/world/World;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official b Lcsm;b:Lgp;
      intermediary field_11410 Lnet/minecraft/class_2452;field_11410:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/block/RailPlacementHelper;pos:Lnet/minecraft/util/math/BlockPos;
    • block

      private final AbstractRailBlock block
      Mappings:
      Namespace Name Mixin selector
      official c Lcsm;c:Lcmj;
      intermediary field_11411 Lnet/minecraft/class_2452;field_11411:Lnet/minecraft/class_2241;
      named block Lnet/minecraft/block/RailPlacementHelper;block:Lnet/minecraft/block/AbstractRailBlock;
    • state

      private BlockState state
      Mappings:
      Namespace Name Mixin selector
      official d Lcsm;d:Lcyt;
      intermediary field_11406 Lnet/minecraft/class_2452;field_11406:Lnet/minecraft/class_2680;
      named state Lnet/minecraft/block/RailPlacementHelper;state:Lnet/minecraft/block/BlockState;
    • forbidCurves

      private final boolean forbidCurves
      Mappings:
      Namespace Name Mixin selector
      official e Lcsm;e:Z
      intermediary field_11408 Lnet/minecraft/class_2452;field_11408:Z
      named forbidCurves Lnet/minecraft/block/RailPlacementHelper;forbidCurves:Z
    • neighbors

      private final List<BlockPos> neighbors
      Mappings:
      Namespace Name Mixin selector
      official f Lcsm;f:Ljava/util/List;
      intermediary field_11407 Lnet/minecraft/class_2452;field_11407:Ljava/util/List;
      named neighbors Lnet/minecraft/block/RailPlacementHelper;neighbors:Ljava/util/List;
  • Constructor Details

    • RailPlacementHelper

      public RailPlacementHelper(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcsm;<init>(Lcjw;Lgp;Lcyt;)V
      intermediary <init> Lnet/minecraft/class_2452;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/RailPlacementHelper;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • getNeighbors

      public List<BlockPos> getNeighbors()
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a()Ljava/util/List;
      intermediary method_10457 Lnet/minecraft/class_2452;method_10457()Ljava/util/List;
      named getNeighbors Lnet/minecraft/block/RailPlacementHelper;getNeighbors()Ljava/util/List;
    • computeNeighbors

      private void computeNeighbors(RailShape shape)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(Lczx;)V
      intermediary method_10466 Lnet/minecraft/class_2452;method_10466(Lnet/minecraft/class_2768;)V
      named computeNeighbors Lnet/minecraft/block/RailPlacementHelper;computeNeighbors(Lnet/minecraft/block/enums/RailShape;)V
    • updateNeighborPositions

      private void updateNeighborPositions()
      Mappings:
      Namespace Name Mixin selector
      official d Lcsm;d()V
      intermediary method_10467 Lnet/minecraft/class_2452;method_10467()V
      named updateNeighborPositions Lnet/minecraft/block/RailPlacementHelper;updateNeighborPositions()V
    • isVerticallyNearRail

      private boolean isVerticallyNearRail(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(Lgp;)Z
      intermediary method_10456 Lnet/minecraft/class_2452;method_10456(Lnet/minecraft/class_2338;)Z
      named isVerticallyNearRail Lnet/minecraft/block/RailPlacementHelper;isVerticallyNearRail(Lnet/minecraft/util/math/BlockPos;)Z
    • getNeighboringRail

      @Nullable private @Nullable RailPlacementHelper getNeighboringRail(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lcsm;b(Lgp;)Lcsm;
      intermediary method_10458 Lnet/minecraft/class_2452;method_10458(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2452;
      named getNeighboringRail Lnet/minecraft/block/RailPlacementHelper;getNeighboringRail(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/RailPlacementHelper;
    • isNeighbor

      private boolean isNeighbor(RailPlacementHelper other)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(Lcsm;)Z
      intermediary method_10464 Lnet/minecraft/class_2452;method_10464(Lnet/minecraft/class_2452;)Z
      named isNeighbor Lnet/minecraft/block/RailPlacementHelper;isNeighbor(Lnet/minecraft/block/RailPlacementHelper;)Z
    • isNeighbor

      private boolean isNeighbor(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lcsm;c(Lgp;)Z
      intermediary method_10463 Lnet/minecraft/class_2452;method_10463(Lnet/minecraft/class_2338;)Z
      named isNeighbor Lnet/minecraft/block/RailPlacementHelper;isNeighbor(Lnet/minecraft/util/math/BlockPos;)Z
    • getNeighborCount

      protected int getNeighborCount()
      Mappings:
      Namespace Name Mixin selector
      official b Lcsm;b()I
      intermediary method_10460 Lnet/minecraft/class_2452;method_10460()I
      named getNeighborCount Lnet/minecraft/block/RailPlacementHelper;getNeighborCount()I
    • canConnect

      private boolean canConnect(RailPlacementHelper placementHelper)
      Mappings:
      Namespace Name Mixin selector
      official b Lcsm;b(Lcsm;)Z
      intermediary method_10455 Lnet/minecraft/class_2452;method_10455(Lnet/minecraft/class_2452;)Z
      named canConnect Lnet/minecraft/block/RailPlacementHelper;canConnect(Lnet/minecraft/block/RailPlacementHelper;)Z
    • computeRailShape

      private void computeRailShape(RailPlacementHelper placementHelper)
      Mappings:
      Namespace Name Mixin selector
      official c Lcsm;c(Lcsm;)V
      intermediary method_10461 Lnet/minecraft/class_2452;method_10461(Lnet/minecraft/class_2452;)V
      named computeRailShape Lnet/minecraft/block/RailPlacementHelper;computeRailShape(Lnet/minecraft/block/RailPlacementHelper;)V
    • canConnect

      private boolean canConnect(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lcsm;d(Lgp;)Z
      intermediary method_10465 Lnet/minecraft/class_2452;method_10465(Lnet/minecraft/class_2338;)Z
      named canConnect Lnet/minecraft/block/RailPlacementHelper;canConnect(Lnet/minecraft/util/math/BlockPos;)Z
    • updateBlockState

      public RailPlacementHelper updateBlockState(boolean powered, boolean forceUpdate, RailShape railShape)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsm;a(ZZLczx;)Lcsm;
      intermediary method_10459 Lnet/minecraft/class_2452;method_10459(ZZLnet/minecraft/class_2768;)Lnet/minecraft/class_2452;
      named updateBlockState Lnet/minecraft/block/RailPlacementHelper;updateBlockState(ZZLnet/minecraft/block/enums/RailShape;)Lnet/minecraft/block/RailPlacementHelper;
    • getBlockState

      public BlockState getBlockState()
      Mappings:
      Namespace Name Mixin selector
      official c Lcsm;c()Lcyt;
      intermediary method_10462 Lnet/minecraft/class_2452;method_10462()Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/block/RailPlacementHelper;getBlockState()Lnet/minecraft/block/BlockState;