@ApiStatus.NonExtendable public interface Overlay extends ResourcePackPart, ResourceContainer
For example, if the overlay foo is applied, the file
overlays/foo/assets/minecraft/textures/bar.png will replace
the contents of assets/minecraft/textures/bar.png.
Note that overlays can add and replace files, but not remove them.
Also note that overlays do not have pack metadata or icon.
| Modifier and Type | Method and Description |
|---|---|
default void |
addTo(@NotNull ResourceContainer resourceContainer)
Adds this overlay to the given resource container,
which must be a resource pack.
|
@NotNull java.lang.String |
directory()
Gets the overlay's directory name.
|
static @NotNull Overlay |
overlay(@NotNull java.lang.String directory)
Creates a new overlay object that will live in the given
directory name.
|
compound, compoundatlas, atlas, atlases, blockState, blockState, blockStates, font, font, font, font, fonts, language, language, languages, merge, model, model, models, part, removeAtlas, removeBlockState, removeFont, removeLanguage, removeModel, removeSound, removeSoundEvent, removeSoundRegistry, removeTexture, removeUnknownFile, sound, sound, sound, soundEvent, soundEvent, soundEvents, soundRegistries, soundRegistry, soundRegistry, sounds, texture, texture, texture, texture, textures, unknownFile, unknownFile, unknownFiles@NotNull @NotNull java.lang.String directory()
default void addTo(@NotNull
@NotNull ResourceContainer resourceContainer)
addTo in interface ResourcePackPartresourceContainer - The resource container@NotNull static @NotNull Overlay overlay(@NotNull @OverlayEntry.Directory @NotNull java.lang.String directory)
directory - The overlay directory name.