Class HTBasicRecipeCategory
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.HTAbstractGui,mezz.jei.api.recipe.category.IRecipeCategory,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener
public abstract class HTBasicRecipeCategory<RECIPE extends Object> extends AbstractContainerEventHandler implements IRecipeCategory<RECIPE>, HTAbstractGui
Hiiragi Coreとそれを前提とするmodで使用されるIRecipeCategoryの拡張クラスです。
- Since:
0.11.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final ItemStackcarriedprivate final ComponentPathcurrentFocusPathprivate GuiEventListenerfocusedprivate final ScreenRectanglerectangleprivate final IDrawableiconprivate final IntegertabOrderGroupprivate final RecipeType<RECIPE>recipeTypeprivate final Componenttitleprivate BooleanisDraggingprivate final Integerheightprivate final IDrawablebackgroundprivate BooleanisFocusedprivate final Integerwidth
-
Constructor Summary
Constructors Constructor Description HTBasicRecipeCategory(IGuiHelper guiHelper, RecipeType<RECIPE> recipeType, Component title, IDrawable icon, HTBounds bounds)HTBasicRecipeCategory(IGuiHelper guiHelper, HTRecipeViewerType<RECIPE> recipeType)
-
Method Summary
Modifier and Type Method Description ItemStackgetCarried()List<GuiEventListener>children()ScreenRectanglegetRectangle()IntegergetGuiLeft()このGUIの始点のx座標を取得します。 IntegergetGuiTop()このGUIの始点のy座標を取得します。 IntegergetXSize()このGUIの幅を取得します。 IntegergetYSize()このGUIの高さを取得します。 final RecipeType<RECIPE>getRecipeType()final ComponentgetTitle()IntegergetWidth()IntegergetHeight()final IDrawablegetIcon()abstract UnitsetRecipe(IRecipeLayoutBuilder builder, RECIPE recipe, IFocusGroup focuses)Unitdraw(RECIPE recipe, IRecipeSlotsView recipeSlotsView, GuiGraphics guiGraphics, Double mouseX, Double mouseY)abstract ResourceLocationgetRegistryName(RECIPE recipe)abstract Codec<RECIPE>getCodec(ICodecHelper codecHelper, IRecipeManager recipeManager)final IntegergetPosition(Integer index)指定したインデックスから座標を返します。 final IntegergetPosition(Float index)指定したインデックスから座標を返します。 final IntegergetPosition(Double index)指定したインデックスから座標を返します。 final IntegergetPosition(Fraction index)指定したインデックスから座標を返します。 -
Methods inherited from class net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, getFocused, isDragging, isFocused, setDragging, setFocused, setFocused -
Methods inherited from class hiiragi283.core.api.integration.jei.category.HTBasicRecipeCategory
getBackground, getFocused, getHeight, getIcon, getRecipeType, getRectangle, getTitle, getWidth, isDragging, setDragging, setFocused -
Methods inherited from class net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup -
Methods inherited from class net.minecraft.client.gui.components.events.GuiEventListener
charTyped, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath -
Methods inherited from class mezz.jei.api.recipe.category.IRecipeCategory
createRecipeExtras, createRecipeExtras, getTooltip, getTooltipStrings, handleInput, isHandled, needsRecipeBorder, onDisplayedIngredientsUpdate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTBasicRecipeCategory
HTBasicRecipeCategory(IGuiHelper guiHelper, RecipeType<RECIPE> recipeType, Component title, IDrawable icon, HTBounds bounds)
-
HTBasicRecipeCategory
HTBasicRecipeCategory(IGuiHelper guiHelper, HTRecipeViewerType<RECIPE> recipeType)
-
-
Method Detail
-
getCarried
ItemStack getCarried()
-
getRectangle
ScreenRectangle getRectangle()
-
getGuiLeft
Integer getGuiLeft()
このGUIの始点のx座標を取得します。
-
getRecipeType
final RecipeType<RECIPE> getRecipeType()
-
getTitle
final Component getTitle()
-
getIcon
final IDrawable getIcon()
-
draw
Unit draw(RECIPE recipe, IRecipeSlotsView recipeSlotsView, GuiGraphics guiGraphics, Double mouseX, Double mouseY)
-
getRegistryName
abstract ResourceLocation getRegistryName(RECIPE recipe)
-
getPosition
final Integer getPosition(Integer index)
指定したインデックスから座標を返します。
-
getPosition
final Integer getPosition(Float index)
指定したインデックスから座標を返します。
-
getPosition
final Integer getPosition(Double index)
指定したインデックスから座標を返します。
-
getPosition
final Integer getPosition(Fraction index)
指定したインデックスから座標を返します。
-
-
-
-