Class AbstractPatternComponent
java.lang.Object
at.petrak.hexcasting.interop.patchouli.AbstractPatternComponent
- All Implemented Interfaces:
vazkii.patchouli.api.ICustomComponent,vazkii.patchouli.api.IVariablesAvailableCallback
- Direct Known Subclasses:
LookupPatternComponent,ManualPatternComponent
public abstract class AbstractPatternComponent
extends Object
implements vazkii.patchouli.api.ICustomComponent
Page that has a hex pattern on it
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(int x, int y, int pagenum) Pass -1, -1 to center it.abstract List<at.petrak.hexcasting.api.casting.math.HexPattern>getPatterns(UnaryOperator<vazkii.patchouli.api.IVariable> lookup) voidonVariablesAvailable(UnaryOperator<vazkii.patchouli.api.IVariable> lookup) voidrender(net.minecraft.client.gui.GuiGraphics graphics, vazkii.patchouli.api.IComponentRenderContext context, float pticks, int mouseX, int mouseY) abstract booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.patchouli.api.ICustomComponent
mouseClicked, onDisplayed
-
Field Details
-
x
protected transient int x -
y
protected transient int y -
hexSize
protected transient float hexSize
-
-
Constructor Details
-
AbstractPatternComponent
public AbstractPatternComponent()
-
-
Method Details
-
build
public void build(int x, int y, int pagenum) Pass -1, -1 to center it.- Specified by:
buildin interfacevazkii.patchouli.api.ICustomComponent
-
getPatterns
public abstract List<at.petrak.hexcasting.api.casting.math.HexPattern> getPatterns(UnaryOperator<vazkii.patchouli.api.IVariable> lookup) -
showStrokeOrder
public abstract boolean showStrokeOrder() -
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, vazkii.patchouli.api.IComponentRenderContext context, float pticks, int mouseX, int mouseY) - Specified by:
renderin interfacevazkii.patchouli.api.ICustomComponent
-
onVariablesAvailable
- Specified by:
onVariablesAvailablein interfacevazkii.patchouli.api.IVariablesAvailableCallback
-