Class PocketCraftingClientHandler

java.lang.Object
petrolpark.mc.library.core.world.item.crafting.pocket.PocketCraftingClientHandler

public class PocketCraftingClientHandler extends Object
  • Field Details

    • INPUT_BORDER

      public static final net.minecraft.resources.ResourceLocation INPUT_BORDER
    • INPUT_SLOT

      public static final net.minecraft.resources.ResourceLocation INPUT_SLOT
    • TOOLTIP_BACKGROUND

      public static final net.minecraft.resources.ResourceLocation TOOLTIP_BACKGROUND
    • ARROWS

      public static final net.minecraft.resources.ResourceLocation ARROWS
    • mc

      protected final net.minecraft.client.Minecraft mc
    • slotIndexer

      protected final PocketCraftingClientHandler.SlotHashStrategy slotIndexer
    • hoveredSlot

      @Nullable protected net.minecraft.world.inventory.Slot hoveredSlot
    • dragStartSlot

      @Nullable protected net.minecraft.world.inventory.Slot dragStartSlot
    • dragEndSlot

      @Nullable protected net.minecraft.world.inventory.Slot dragEndSlot
    • existingInputSlots

      protected final Set<net.minecraft.world.inventory.Slot> existingInputSlots
    • inputSlotsToModify

      protected final Set<net.minecraft.world.inventory.Slot> inputSlotsToModify
    • removeInputSlotsToModify

      protected boolean removeInputSlotsToModify
    • allInputSlots

      protected final Set<net.minecraft.world.inventory.Slot> allInputSlots
    • slotInterpretations

      protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<List<IInterpretedSlot<?>>> slotInterpretations
    • selectedSlotInterpretations

      protected final it.unimi.dsi.fastutil.ints.Int2IntMap selectedSlotInterpretations
    • activeCrafter

      @Nullable protected PocketCraftingClientHandler.ActiveCrafter<?> activeCrafter
    • toolStack

      protected net.minecraft.world.item.ItemStack toolStack
    • selectedRecipe

      protected int selectedRecipe
    • craftingResult

      @Nullable protected PocketCrafting.Result craftingResult
    • inputBorderTexturePlacements

      protected final List<PocketCraftingClientHandler.BorderTexturePlacement> inputBorderTexturePlacements
    • outputTooltipX

      protected int outputTooltipX
    • outputTooltipY

      protected int outputTooltipY
    • tooltipLines

      protected final List<net.minecraft.network.chat.Component> tooltipLines
  • Constructor Details

    • PocketCraftingClientHandler

      public PocketCraftingClientHandler(net.minecraft.client.Minecraft mc)
  • Method Details

    • cancel

      public void cancel()
    • onOpenScreen

      public void onOpenScreen(net.neoforged.neoforge.client.event.ScreenEvent.Opening event)
    • onRenderScreenBackground

      public void onRenderScreenBackground(net.neoforged.neoforge.client.event.ContainerScreenEvent.Render.Background event)
    • onRenderTooltip

      public void onRenderTooltip(net.neoforged.neoforge.client.event.RenderTooltipEvent.Color event)
    • onRenderScreenForeground

      public void onRenderScreenForeground(net.neoforged.neoforge.client.event.ContainerScreenEvent.Render.Foreground event)
    • onMousePressed

      public void onMousePressed(net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed.Pre event)
    • onMouseReleased

      public void onMouseReleased(net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased.Pre event)
    • onKeyPressed

      public void onKeyPressed(net.neoforged.neoforge.client.event.ScreenEvent.KeyPressed.Pre event)
    • onCloseScreen

      public void onCloseScreen(net.neoforged.neoforge.client.event.ScreenEvent.Closing event)
    • calculateTooltipLines

      public void calculateTooltipLines()
    • calculateRecipes

      public void calculateRecipes(net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen)
    • calculateInputSlots

      public void calculateInputSlots(net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen)
    • calculateSlotInterpretation

      public void calculateSlotInterpretation(@Nonnull IPocketCraftingContext context, @Nonnull IPocketCrafter<?> crafter, @Nonnull net.minecraft.world.inventory.Slot slot)
    • calculateInputSlotsToRender

      public void calculateInputSlotsToRender()
    • calculateMenuGrids

      public void calculateMenuGrids(net.minecraft.client.gui.screens.Screen screen)
    • getBorderTexturePlacements

      public List<PocketCraftingClientHandler.BorderTexturePlacement> getBorderTexturePlacements(Collection<net.minecraft.world.inventory.Slot> slots)