Class ClientTubePlacementHandler

java.lang.Object
com.petrolpark.compat.create.core.tube.ClientTubePlacementHandler

public class ClientTubePlacementHandler extends Object
  • Field Details

    • currentStack

      protected static net.minecraft.world.item.ItemStack currentStack
    • tubeBlock

      protected static ITubeBlock tubeBlock
    • start

      protected static BlockFace start
    • end

      protected static BlockFace end
    • spline

      protected static TubeSpline spline
    • ttl

      protected static int ttl
    • targetedControlPoint

      protected static int targetedControlPoint
    • distanceToSelectedControlPoint

      protected static double distanceToSelectedControlPoint
    • draggingSelectedControlPoint

      protected static boolean draggingSelectedControlPoint
    • controlPointBoxes

      protected static List<net.minecraft.world.phys.AABB> controlPointBoxes
    • canAfford

      protected static boolean canAfford
    • OVERLAY

      public static final net.minecraftforge.client.gui.overlay.IGuiOverlay OVERLAY
  • Constructor Details

    • ClientTubePlacementHandler

      public ClientTubePlacementHandler()
  • Method Details

    • tick

      public static void tick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
    • renderOverlay

      public static void renderOverlay(net.minecraftforge.client.gui.overlay.ForgeGui gui, net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int width, int height)
    • onUseMouse

      public static void onUseMouse(net.minecraftforge.client.event.InputEvent.MouseButton event)
    • onScrollMouse

      public static void onScrollMouse(net.minecraftforge.client.event.InputEvent.MouseScrollingEvent event)
    • onUseKey

      public static void onUseKey(net.minecraftforge.client.event.InputEvent.Key event)
    • relocateControlPoint

      protected static void relocateControlPoint()
    • tryConnect

      public static void tryConnect(BlockFace location, net.minecraft.world.item.ItemStack stack, ITubeBlock tubeBlock, boolean manualPlacement)
    • revalidateSpline

      public static void revalidateSpline(net.minecraft.client.Minecraft mc)
    • addControlPointWithoutRevalidating

      public static void addControlPointWithoutRevalidating(net.minecraft.world.phys.Vec3 controlPoint)
    • resetTTL

      public static void resetTTL()
    • active

      public static boolean active()
    • cancel

      public static void cancel()