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 TypeMethodDescriptiondoubleSpecifies the z depth of the background content.floatfloatbooleanbooleanbooleanvoidrenderBackground(GuiRender render, double mouseX, double mouseY, float partialTicks) Used to render content behind this elements child elements.static voidrenderEntityInInventory(GuiRender render, double pX, double pY, double pScale, boolean flat, org.joml.Quaternionf quat, @Nullable org.joml.Quaternionf pCameraOrientation, net.minecraft.world.entity.Entity pEntity) static voidrenderEntityInInventory(GuiRender render, double pX, double pY, double pScale, org.joml.Quaternionf quat, @Nullable org.joml.Quaternionf pCameraOrientation, net.minecraft.world.entity.Entity pEntity) static voidrenderEntityInInventoryFollowsAngle(GuiRender render, double pX, double pY, double pScale, boolean flat, float angleX, float angleY, net.minecraft.world.entity.LivingEntity pEntity) static voidrenderEntityInInventoryFollowsAngle(GuiRender render, double pX, double pY, double pScale, float angleX, float angleY, net.minecraft.world.entity.LivingEntity pEntity) static voidrenderEntityInInventoryFollowsMouse(GuiRender render, double pX, double pY, double pScale, boolean flat, float offsetX, float offsetY, net.minecraft.world.entity.LivingEntity pEntity) static voidrenderEntityInInventoryFollowsMouse(GuiRender render, double pX, double pY, double pScale, float offsetX, float offsetY, net.minecraft.world.entity.LivingEntity pEntity) static voidrenderEntityInInventoryWithRotation(GuiRender render, double xPos, double yPos, double scale, boolean flat, double rotation, net.minecraft.world.entity.LivingEntity living) static voidrenderEntityInInventoryWithRotation(GuiRender render, double xPos, double yPos, double scale, double rotation, net.minecraft.world.entity.LivingEntity living) setDrawName(boolean drawName) setDrawName(Supplier<Boolean> drawName) setEntity(net.minecraft.resources.ResourceLocation 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, getCombinedElementDepth, 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, setZStacking, showToolTip, tick, toString, updateMouseOver, updateScreenData, zStackingMethods 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
-
getBackgroundDepth
public double getBackgroundDepth()Description copied from interface:BackgroundRenderSpecifies the z depth of the background content. AfterBackgroundRender.renderBackground(GuiRender, double, double, float)is called, the PoseStack will be translated by this amount in the z direction before any assigned child elements are rendered. Recommended minimum depth is 0.01 or 0.035 if this element renders text. (text shadows are rendered with a 0.03 offset)- Specified by:
getBackgroundDepthin interfaceBackgroundRender- Returns:
- the z height of the background content.
-
renderBackground
Description copied from interface:BackgroundRenderUsed to render content behind this elements child elements. When rendering element content, always use thePoseStackavailable via the providedGuiRenderWhere applicable, always use push/pop to ensure the stack is returned to its original state after your rendering is complete.- Specified by:
renderBackgroundin interfaceBackgroundRender- Parameters:
render- Contains gui context information as well as essential render methods/utils including the PoseStack.
-
renderEntityInInventoryFollowsMouse
public static void renderEntityInInventoryFollowsMouse(GuiRender render, double pX, double pY, double pScale, float offsetX, float offsetY, net.minecraft.world.entity.LivingEntity pEntity) -
renderEntityInInventoryFollowsMouse
public static void renderEntityInInventoryFollowsMouse(GuiRender render, double pX, double pY, double pScale, boolean flat, float offsetX, float offsetY, net.minecraft.world.entity.LivingEntity pEntity) -
renderEntityInInventoryFollowsAngle
public static void renderEntityInInventoryFollowsAngle(GuiRender render, double pX, double pY, double pScale, float angleX, float angleY, net.minecraft.world.entity.LivingEntity pEntity) -
renderEntityInInventoryFollowsAngle
public static void renderEntityInInventoryFollowsAngle(GuiRender render, double pX, double pY, double pScale, boolean flat, float angleX, float angleY, net.minecraft.world.entity.LivingEntity pEntity) -
renderEntityInInventoryWithRotation
public static void renderEntityInInventoryWithRotation(GuiRender render, double xPos, double yPos, double scale, double rotation, net.minecraft.world.entity.LivingEntity living) -
renderEntityInInventoryWithRotation
public static void renderEntityInInventoryWithRotation(GuiRender render, double xPos, double yPos, double scale, boolean flat, double rotation, net.minecraft.world.entity.LivingEntity living) -
renderEntityInInventory
public static void renderEntityInInventory(GuiRender render, double pX, double pY, double pScale, org.joml.Quaternionf quat, @Nullable @Nullable org.joml.Quaternionf pCameraOrientation, net.minecraft.world.entity.Entity pEntity) -
renderEntityInInventory
public static void renderEntityInInventory(GuiRender render, double pX, double pY, double pScale, boolean flat, org.joml.Quaternionf quat, @Nullable @Nullable org.joml.Quaternionf pCameraOrientation, net.minecraft.world.entity.Entity pEntity)
-