Class GuiItemAtlas
java.lang.Object
net.minecraft.client.gui.render.GuiItemAtlas
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DynamicAtlasAllocator<Object> private final GpuTextureprivate final GpuTextureViewprivate final FeatureRenderDispatcherprivate static final intprivate final PoseStackprivate final Projectionprivate final ProjectionMatrixBufferprivate final intprivate final SubmitNodeStorageprivate final GpuTextureprivate final intprivate final GpuTextureView -
Constructor Summary
ConstructorsConstructorDescriptionGuiItemAtlas(FeatureRenderDispatcher featureRenderDispatcher, int textureSize, int slotTextureSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static intcomputeTextureSizeFor(int slotTextureSize, int requiredSlotCount) private voiddrawToSlot(int slotX, int slotY, boolean clear, ItemStackRenderState item) voidendFrame()intbooleantryPrepareFor(Set<Object> items)
-
Field Details
-
MINIMUM_TEXTURE_SIZE
private static final int MINIMUM_TEXTURE_SIZE- See Also:
-
submitNodeStorage
-
featureRenderDispatcher
-
textureSize
private final int textureSize -
slotTextureSize
private final int slotTextureSize -
texture
-
textureView
-
depthTexture
-
depthTextureView
-
allocator
-
poseStack
-
projection
-
projectionMatrixBuffer
-
-
Constructor Details
-
GuiItemAtlas
public GuiItemAtlas(FeatureRenderDispatcher featureRenderDispatcher, int textureSize, int slotTextureSize)
-
-
Method Details
-
computeTextureSizeFor
public static int computeTextureSizeFor(int slotTextureSize, int requiredSlotCount) -
endFrame
public void endFrame() -
tryPrepareFor
-
getOrUpdate
-
drawToSlot
-
textureSize
public int textureSize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-