MindustryAssetsExtension

public class MindustryAssetsExtension

Constructors

Link copied to clipboard
public MindustryAssetsExtension MindustryAssetsExtension(Project target)

Types

Link copied to clipboard
public final class AssetBatchType implements Serializable

An asset batch type. It can be used for generating resource class.

Link copied to clipboard
public final class AssetRootSpec

For configuring assetsRoot

Link copied to clipboard
public final class IconSpec

Functions

Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType BatchType(Function1<MindustryAssetsExtension.AssetBatchType, Unit> config)

Create an AssetBatchType and return it

Link copied to clipboard
public final Unit bundles(Action<AssetBatch> config)

The batch type of shaders:

Link copied to clipboard
public final HashMap<String, String> getArgs()

The arguments used for generating.

Link copied to clipboard
public final ListProperty<AssetBatch> getBatches()
Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType getBundles()

The batch type of shaders:

Link copied to clipboard
public final IResourceClassGenerator getGenerator(String name)

Get a resource generator or IResourceClassGenerator.Empty if that doesn't exist.

Link copied to clipboard
public final HashMap<String, IResourceClassGenerator> getGenerators()

All resource class generators.

Link copied to clipboard
public final MindustryAssetsExtension.IconSpec getIcon()

A spec for configuring icon.

Link copied to clipboard
public final Property<String> getQualifiedName()

The qualified name of generated class, such as io.github.liplum.Mindustry

Link copied to clipboard
public final MindustryAssetsExtension.AssetRootSpec getRoot()

A spec for configuring assetsRoot.

Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType getShaders()

The batch type of shaders:

Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType getSounds()

The batch type of sounds:

Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType getSprites()

The batch type of sprites:

Link copied to clipboard
public final Unit iconAt(File file)

Set the _icon to file

public final Unit iconAt(String path)

Set the _icon to path

Link copied to clipboard
public final MindustryAssetsExtension.AssetBatchType invoke(String $self, Function1<MindustryAssetsExtension.AssetBatchType, Unit> config)

Create an AssetBatchType by the string given and return it

Link copied to clipboard
public final Unit rootAt(File file)

Set the assetsRoot to file

public final Unit rootAt(String path)

Set the assetsRoot to path

Link copied to clipboard
public final Unit setGenerator(String name, IResourceClassGenerator gen)

Set a resource generator.

Link copied to clipboard
public final Unit shaders(Action<AssetBatch> config)

The batch type of shaders:

Link copied to clipboard
public final Unit sounds(Action<AssetBatch> config)

The batch type of sprites:

Link copied to clipboard
public final Unit sprites(Action<AssetBatch> config)

The batch type of sprites:

Properties

Link copied to clipboard
public final Property<File> _icon

The icon of this mod to be included in :jar task.

Link copied to clipboard
public final NameRule AllCaps
Link copied to clipboard
private final HashMap<String, String> args

The arguments used for generating.

Link copied to clipboard
public final Property<File> assetsRoot

The assets root of a mod only including a single assets folder

Link copied to clipboard
private final ListProperty<AssetBatch> batches
Link copied to clipboard
private final MindustryAssetsExtension.AssetBatchType bundles

The batch type of shaders:

Link copied to clipboard
public final NameRule Camel
Link copied to clipboard
public final NameRule Domain
Link copied to clipboard
private final HashMap<String, IResourceClassGenerator> generators

All resource class generators.

Link copied to clipboard
private final MindustryAssetsExtension.IconSpec icon

A spec for configuring icon.

Link copied to clipboard
public final NameRule Kebab
Link copied to clipboard
public final NameRule Pascal
Link copied to clipboard
private final Property<String> qualifiedName

The qualified name of generated class, such as io.github.liplum.Mindustry

Link copied to clipboard
private final MindustryAssetsExtension.AssetRootSpec root

A spec for configuring assetsRoot.

Link copied to clipboard
private final MindustryAssetsExtension.AssetBatchType shaders

The batch type of shaders:

Link copied to clipboard
public final NameRule Snake
Link copied to clipboard
private final MindustryAssetsExtension.AssetBatchType sounds

The batch type of sounds:

Link copied to clipboard
private final MindustryAssetsExtension.AssetBatchType sprites

The batch type of sprites: