Class EntityModelComponent
Passive retained component that renders a synthetic entity or player preview inside GUI or HUD surfaces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncameraOffsetY(float cameraOffsetY) configureEntity(Consumer<net.minecraft.world.entity.Entity> configurator) entityType(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Entity> entityType) idleAnimation(boolean idleAnimation) idleAnimationSpeed(float idleAnimationSpeed) idleAnimationStrength(float idleAnimationStrength) playerSkin(GuiImageSource source, net.minecraft.world.entity.player.PlayerModelType model) playerUuid(UUID uuid) playerUuid(UUID uuid, @Nullable net.minecraft.world.entity.player.PlayerModelType modelOverride) protected floatpreferredHeight(com.render.api.gui.GuiRenderContext context) protected floatpreferredWidth(com.render.api.gui.GuiRenderContext context) renderScale(float renderScale) protected voidrenderSelf(com.render.api.gui.GuiRenderContext context) resourceSkin(net.minecraft.resources.Identifier id, net.minecraft.world.entity.player.PlayerModelType model) xRotation(float xRotation) yPivot(float yPivot) yRotation(float yRotation) zoom(float zoom) Methods inherited from class GuiComponent
activeStateStyle, add, alignContent, alignItems, alignSelf, anchor, anchorName, anchorPlacement, animatedBorder, animation, applyStyle, aspectRatio, autoHeight, autoSize, autoWidth, backdropFilters, backfaceVisibility, backgroundColor, backgroundColor, backgroundLayer, backgroundLayers, backgroundLayers, border, borderCollapse, borderColor, borderColor, borderSpacing, borderWidth, boxDecorationBreak, boxGlow, boxShadow, boxShadows, boxShadows, boxSizing, breakAfter, breakBefore, breakInside, cancel, captionSide, caretStyle, centered, childGap, childLayout, childLayoutViewport, childOffsetX, childOffsetY, children, clearChildren, clipChildren, clipPath, clipsChildren, color, color, columnCount, columnFill, columnGap, columnRule, columnSpan, columnWidth, computedStyle, containsChildClipPoint, contextMenu, cornerRadius, defaultDisplay, dirtyCategories, disabled, display, emptyCells, enabled, enabled, filters, findById, findById, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, focused, focused, fragmentTree, glow, gradient, gridAutoFlow, gridPlacement, gridTemplate, handlesMouseClick, handlesMouseScroll, height, height, height, hovered, id, id, indeterminate, indeterminate, inlineStyle, inset, inset, intrinsicSize, invalidateModernLayout, isClippingChildren, isFocusable, justifyContent, justifyItems, justifySelf, lastInvalidationReason, layoutChildren, layoutFragments, listStyleImage, listStylePosition, listStyleType, margin, margin, margin, marginBreak, markerGap, markerSide, maskLayers, maskLayers, matchesStyleState, maxHeight, maxWidth, minHeight, minWidth, motionPath, onCharTyped, onFocusChanged, onKeyPressed, onModernLayoutComplete, onMouseClicked, onMouseDragged, onMouseReleased, onMouseScrolled, opacity, order, orphans, outline, padding, padding, padding, pageName, paint, parent, pause, play, position, position, preferredHeightForWidth, pressed, pseudoElementBox, pseudoElementStyle, quotes, rangeState, rangeState, readOnly, readOnly, remove, removeStyleClass, renderChildren, renderClippedChildren, renderOverlay, requestFocus, required, required, resolveBaseProperties, resume, rowGap, scrollMargin, scrollMargin, scrollSnapStop, self, shadow, shouldRouteToChildren, size, size, startingStyle, stateProvider, styleAttribute, styleAttribute, styleClass, styleClasses, styledPseudoElements, styleOpen, styleState, styleState, tabIndex, tabIndex, tableLayout, tick, tooltip, transform, transformBox, transformOrigin, transformStyle, transition, transition, transition, transition, transition, transition, transitionAll, transitionAll, transitionAll, translate, translateX, translateY, validity, validity, verticalAlign, viewTransitionName, viewTransitionName, visible, visible, widows, width, width, width, writeModernInline, writeTextShadow, writingState, x, x, y, y, zIndex
-
Constructor Details
-
EntityModelComponent
public EntityModelComponent()
-
-
Method Details
-
entityType
public EntityModelComponent entityType(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.Entity> entityType) -
configureEntity
public EntityModelComponent configureEntity(Consumer<net.minecraft.world.entity.Entity> configurator) -
playerSkin
public EntityModelComponent playerSkin(GuiImageSource source, net.minecraft.world.entity.player.PlayerModelType model) -
resourceSkin
public EntityModelComponent resourceSkin(net.minecraft.resources.Identifier id, net.minecraft.world.entity.player.PlayerModelType model) -
urlSkin
public EntityModelComponent urlSkin(String url, net.minecraft.world.entity.player.PlayerModelType model) -
playerUuid
-
playerUuid
public EntityModelComponent playerUuid(UUID uuid, @Nullable net.minecraft.world.entity.player.PlayerModelType modelOverride) -
xRotation
-
yRotation
-
yPivot
-
zoom
-
renderScale
-
cameraOffsetY
-
idleAnimation
-
idleAnimationSpeed
-
idleAnimationStrength
-
preferredWidth
protected float preferredWidth(com.render.api.gui.GuiRenderContext context) - Overrides:
preferredWidthin classGuiComponent<EntityModelComponent>
-
preferredHeight
protected float preferredHeight(com.render.api.gui.GuiRenderContext context) - Overrides:
preferredHeightin classGuiComponent<EntityModelComponent>
-
renderSelf
protected void renderSelf(com.render.api.gui.GuiRenderContext context) - Overrides:
renderSelfin classGuiComponent<EntityModelComponent>
-