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 MultiBufferSource.BufferSourceprivate final GpuTextureprivate final GpuTextureViewprivate final FeatureRenderDispatcherprivate static final intprivate static final intprivate final PoseStackprivate final Projectionprivate final ProjectionMatrixBufferprivate final intprivate final SubmitNodeCollectorprivate final GpuTextureprivate final intprivate final GpuTextureView -
Constructor Summary
ConstructorsConstructorDescriptionGuiItemAtlas(SubmitNodeCollector submitNodeCollector, FeatureRenderDispatcher featureRenderDispatcher, MultiBufferSource.BufferSource bufferSource, 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()@Nullable GuiItemAtlas.SlotViewintbooleantryPrepareFor(Set<Object> items)
-
Field Details
-
MINIMUM_TEXTURE_SIZE
private static final int MINIMUM_TEXTURE_SIZE- See Also:
-
MAXIMUM_TEXTURE_SIZE
private static final int MAXIMUM_TEXTURE_SIZE -
submitNodeCollector
-
featureRenderDispatcher
-
bufferSource
-
textureSize
private final int textureSize -
slotTextureSize
private final int slotTextureSize -
texture
-
textureView
-
depthTexture
-
depthTextureView
-
allocator
-
poseStack
-
projection
-
projectionMatrixBuffer
-
-
Constructor Details
-
GuiItemAtlas
public GuiItemAtlas(SubmitNodeCollector submitNodeCollector, FeatureRenderDispatcher featureRenderDispatcher, MultiBufferSource.BufferSource bufferSource, 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
-