Class PocketCraftingClientHandler
java.lang.Object
petrolpark.mc.library.core.world.item.crafting.pocket.PocketCraftingClientHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassPocketCraftingClientHandler.ActiveCrafter<R extends net.minecraft.world.item.crafting.Recipe<?>>static final recordclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PocketCraftingClientHandler.ActiveCrafter<?> protected final Set<net.minecraft.world.inventory.Slot> static final net.minecraft.resources.ResourceLocationprotected PocketCrafting.Resultprotected net.minecraft.world.inventory.Slotprotected net.minecraft.world.inventory.Slotprotected final Set<net.minecraft.world.inventory.Slot> protected net.minecraft.world.inventory.Slotstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationprotected final List<PocketCraftingClientHandler.BorderTexturePlacement> protected final Set<net.minecraft.world.inventory.Slot> protected final net.minecraft.client.Minecraftprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PocketCrafting.SlotGrid> protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.inventory.Slot>> protected intprotected intprotected booleanprotected intprotected final it.unimi.dsi.fastutil.ints.Int2IntMapprotected final PocketCraftingClientHandler.SlotHashStrategyprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<List<IInterpretedSlot<?>>> protected net.minecraft.world.item.ItemStackstatic final net.minecraft.resources.ResourceLocationprotected final List<net.minecraft.network.chat.Component> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateInputSlots(net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen) voidvoidcalculateMenuGrids(net.minecraft.client.gui.screens.Screen screen) voidcalculateRecipes(net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen) voidcalculateSlotInterpretation(IPocketCraftingContext context, IPocketCrafter<?> crafter, net.minecraft.world.inventory.Slot slot) voidvoidcancel()getBorderTexturePlacements(Collection<net.minecraft.world.inventory.Slot> slots) voidonCloseScreen(net.neoforged.neoforge.client.event.ScreenEvent.Closing event) voidonKeyPressed(net.neoforged.neoforge.client.event.ScreenEvent.KeyPressed.Pre event) voidonMousePressed(net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed.Pre event) voidonMouseReleased(net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased.Pre event) voidonOpenScreen(net.neoforged.neoforge.client.event.ScreenEvent.Opening event) voidonRenderScreenBackground(net.neoforged.neoforge.client.event.ContainerScreenEvent.Render.Background event) voidonRenderScreenForeground(net.neoforged.neoforge.client.event.ContainerScreenEvent.Render.Foreground event) voidonRenderTooltip(net.neoforged.neoforge.client.event.RenderTooltipEvent.Color event)
-
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
-
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
-
inputSlotsToModify
-
removeInputSlotsToModify
protected boolean removeInputSlotsToModify -
allInputSlots
-
slotInterpretations
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<List<IInterpretedSlot<?>>> slotInterpretations -
selectedSlotInterpretations
protected final it.unimi.dsi.fastutil.ints.Int2IntMap selectedSlotInterpretations -
activeCrafter
-
toolStack
protected net.minecraft.world.item.ItemStack toolStack -
selectedRecipe
protected int selectedRecipe -
craftingResult
-
inputBorderTexturePlacements
protected final List<PocketCraftingClientHandler.BorderTexturePlacement> inputBorderTexturePlacements -
outputTooltipX
protected int outputTooltipX -
outputTooltipY
protected int outputTooltipY -
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)
-