Class GuiEntityRenderer
java.lang.Object
codechicken.lib.gui.modular.lib.geometry.ConstrainedGeometry<GuiEntityRenderer>
codechicken.lib.gui.modular.elements.GuiElement<GuiEntityRenderer>
codechicken.lib.gui.modular.elements.GuiEntityRenderer
- All Implemented Interfaces:
BackgroundRender,ElementEvents,GuiParent<GuiEntityRenderer>,TooltipHandler<GuiEntityRenderer>
Created by brandon3055 on 15/11/2023
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final org.apache.logging.log4j.LoggerFields inherited from class codechicken.lib.gui.modular.elements.GuiElement
hoverTime, initialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatbooleanbooleanbooleanvoidrenderBehind(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks) Used to render content behind this elements child elements.setDrawName(boolean drawName) setDrawName(Supplier<Boolean> drawName) setEntity(net.minecraft.resources.Identifier entity) setEntity(net.minecraft.world.entity.Entity entity) setForce2dSize(boolean force2dSize) setLockedRotation(float lockedRotation) setLockedRotation(Supplier<Float> lockedRotation) setRotationLocked(boolean rotationLocked) setRotationLocked(Supplier<Boolean> rotationLocked) setRotationSpeed(float rotationSpeed) setRotationSpeed(Supplier<Float> rotationSpeed) setTrackMouse(boolean trackMouse) setTrackMouse(Supplier<Boolean> trackMouse) Methods inherited from class codechicken.lib.gui.modular.elements.GuiElement
addChild, addJeiDropTargets, addJeiExclusions, adoptChild, applyQueuedChildUpdates, blockMouseEvents, blockMouseOver, bringChildToForeground, font, getChildren, getJeiDropConsumer, getModularGui, getParent, getTooltip, getTooltipDelay, hoverTime, initElement, isDescendantOf, isEnabled, isJeiDropTarget, isJeiExcluded, isMouseOver, isOpaque, isRemoved, isTooltipEnabled, jeiExclude, mc, onScreenInit, removeChild, render, renderChild, renderOverlay, scaledScreenHeight, scaledScreenWidth, sendChildToBackground, sendChildToIndex, setEnabled, setEnabled, setEnableToolTip, setJeiDropTarget, setJeiExcluded, setOpaque, setRenderCull, setTooltip, setTooltipDelay, showToolTip, tick, toString, updateMouseOver, updateScreenDataMethods inherited from class codechicken.lib.gui.modular.lib.geometry.ConstrainedGeometry
addBoundsToRect, clearConstraints, clearGeometryCache, constrain, get, getChildBounds, getEnclosingRect, getParent, getPosition, getRectangle, placeInside, placeInside, placeOutside, placeOutside, setHeight, setPos, setSize, setWidth, setXPos, setYPos, strictMode, validate, xCenter, xMax, xMin, xSize, yCenter, yMax, yMin, ySizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface codechicken.lib.gui.modular.lib.ElementEvents
charTyped, charTyped, keyPressed, keyPressed, keyReleased, keyReleased, mouseClicked, mouseClicked, mouseMoved, mouseReleased, mouseReleased, mouseScrolled, mouseScrolledMethods inherited from interface codechicken.lib.gui.modular.lib.geometry.GuiParent
addChild, getValueMethods inherited from interface codechicken.lib.gui.modular.lib.TooltipHandler
renderTooltip, setTooltip, setTooltip, setTooltip, setTooltipSingle, setTooltipSingle
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
force2dSize
public boolean force2dSize
-
-
Constructor Details
-
GuiEntityRenderer
-
-
Method Details
-
setEntity
-
setEntity
-
setRotationSpeed
-
setRotationSpeed
-
getRotationSpeed
public float getRotationSpeed() -
setLockedRotation
-
setLockedRotation
-
getLockedRotation
public float getLockedRotation() -
setRotationLocked
-
setRotationLocked
-
isRotationLocked
public boolean isRotationLocked() -
setTrackMouse
-
setTrackMouse
-
isTrackMouse
public boolean isTrackMouse() -
setDrawName
-
setDrawName
-
isDrawName
public boolean isDrawName() -
setForce2dSize
-
renderBehind
public void renderBehind(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks) Description copied from interface:BackgroundRenderUsed to render content behind this elements child elements. When rendering element content, always use thePoseStackavailable via the providedWhere applicable, always use push/pop to ensure the stack is returned to its original state after your rendering is complete.invalid reference
GuiRender- Specified by:
renderBehindin interfaceBackgroundRender- Parameters:
graphics- Contains gui context information as well as essential render methods/utils including the PoseStack.
-