@ApiStatus.NonExtendable public interface Atlas extends ResourcePackPart, net.kyori.adventure.key.Keyed, net.kyori.examination.Examinable
When the game loads all textures used by block and item models, the textures need to be stitched (merged) into a single image, called the "atlas".
Individual textures that are stitched onto the atlas are called "sprites".
Note that, since Minecraft 1.19.3, by default, textures not in "item/" or "block/" directories are no longer automatically recognized and will fail to load.
See the 1.19.3 change-log and the atlas structure in the resource-pack here
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Atlas.Builder
A mutable builder for
Atlas instances. |
| Modifier and Type | Field and Description |
|---|---|
static net.kyori.adventure.key.Key |
ARMOR_TRIMS |
static net.kyori.adventure.key.Key |
BANNER_PATTERNS |
static net.kyori.adventure.key.Key |
BEDS |
static net.kyori.adventure.key.Key |
BLOCKS |
static net.kyori.adventure.key.Key |
CHESTS |
static net.kyori.adventure.key.Key |
DECORATED_POT |
static net.kyori.adventure.key.Key |
GUI
Key for the GUI texture atlas.
|
static net.kyori.adventure.key.Key |
MOB_EFFECTS |
static net.kyori.adventure.key.Key |
PAINTINGS |
static net.kyori.adventure.key.Key |
PARTICLES |
static net.kyori.adventure.key.Key |
SHIELD_PATTERNS |
static net.kyori.adventure.key.Key |
SHULKER_BOXES |
static net.kyori.adventure.key.Key |
SIGNS |
| Modifier and Type | Method and Description |
|---|---|
default void |
addTo(@NotNull ResourceContainer resourceContainer)
Adds this atlas instance to the given resource container.
|
static @NotNull Atlas.Builder |
atlas()
Creates a new
Atlas builder instance. |
static @NotNull Atlas |
atlas(@NotNull net.kyori.adventure.key.Key key,
@NotNull java.util.List<AtlasSource> sources)
Creates a new
Atlas instance. |
static @NotNull Atlas.Builder |
builder()
Deprecated.
In favor of
atlas() |
@NotNull net.kyori.adventure.key.Key |
key()
Gets the
Atlas key, e.g. |
static @NotNull Atlas |
of(@NotNull net.kyori.adventure.key.Key key,
@NotNull java.util.List<AtlasSource> sources)
Deprecated.
in favor of
atlas(Key, List) |
@Unmodifiable @NotNull java.util.List<AtlasSource> |
sources()
Gets the list of sources for this
Atlas |
@NotNull Atlas.Builder |
toBuilder()
Converts this atlas instance to its builder type,
with all the properties already set
|
compound, compoundstatic final net.kyori.adventure.key.Key BLOCKS
static final net.kyori.adventure.key.Key BANNER_PATTERNS
static final net.kyori.adventure.key.Key BEDS
static final net.kyori.adventure.key.Key CHESTS
static final net.kyori.adventure.key.Key SHIELD_PATTERNS
static final net.kyori.adventure.key.Key SHULKER_BOXES
static final net.kyori.adventure.key.Key SIGNS
static final net.kyori.adventure.key.Key MOB_EFFECTS
static final net.kyori.adventure.key.Key PAINTINGS
static final net.kyori.adventure.key.Key PARTICLES
static final net.kyori.adventure.key.Key ARMOR_TRIMS
static final net.kyori.adventure.key.Key DECORATED_POT
static final net.kyori.adventure.key.Key GUI
@NotNull @NotNull net.kyori.adventure.key.Key key()
Atlas key, e.g. "test:fancy", note
that JSON extension is not includedkey in interface net.kyori.adventure.key.Keyed@NotNull @Unmodifiable @NotNull java.util.List<AtlasSource> sources()
AtlasAtlasSource@Contract(value="-> new") @NotNull @NotNull Atlas.Builder toBuilder()
default void addTo(@NotNull
@NotNull ResourceContainer resourceContainer)
addTo in interface ResourcePackPartresourceContainer - The resource container@NotNull static @NotNull Atlas atlas(@NotNull @NotNull net.kyori.adventure.key.Key key, @NotNull @NotNull java.util.List<AtlasSource> sources)
Atlas instance.key - The atlas key, doesn't include JSON extensionsources - The list of sources for the atlas@NotNull static @NotNull Atlas.Builder atlas()
Atlas builder instance.@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull Atlas of(@NotNull @NotNull net.kyori.adventure.key.Key key, @NotNull @NotNull java.util.List<AtlasSource> sources)
atlas(Key, List)Atlas instance.key - The atlas key, doesn't include JSON extensionsources - The list of sources for the atlas@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull Atlas.Builder builder()
atlas()Atlas builder instance.