AssetBatchType

public final class AssetBatchType implements Serializable

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

Constructors

Link copied to clipboard
public MindustryAssetsExtension.AssetBatchType MindustryAssetsExtension.AssetBatchType(    String group,     String className,     String generator,     NameRule nameRule,     Map<String, String> args)

Functions

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

Create and add a new AssetBatch

Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public final Map<String, String> getArgs()

The special arguments for generating which will overwrite MindustryAssetsExtension.args

Link copied to clipboard
public final String getClassName()

Ihe name of generated class.

Link copied to clipboard
public final String getGenerator()

The name of a generator, which has been registered in ResourceClassGeneratorRegistry or MindustryAssetsExtension.generators.

Link copied to clipboard
public final String getGroup()

The resource group.

Link copied to clipboard
public final NameRule getNameRule()

The name rule of resources. NameRule.Kebab as default

Link copied to clipboard
public Integer hashCode()
Link copied to clipboard
public final Unit invoke(Function1<AssetBatch, Unit> config)

Create and add a new AssetBatch

Link copied to clipboard
public final Unit setArgs(Map<String, String> args)

The special arguments for generating which will overwrite MindustryAssetsExtension.args

Link copied to clipboard
public final Unit setClassName(String className)

Ihe name of generated class.

Link copied to clipboard
public final Unit setGenerator(String generator)

The name of a generator, which has been registered in ResourceClassGeneratorRegistry or MindustryAssetsExtension.generators.

Link copied to clipboard
public final Unit setGroup(String group)

The resource group.

Link copied to clipboard
public final Unit setNameRule(NameRule nameRule)

The name rule of resources. NameRule.Kebab as default

Link copied to clipboard
public String toString()

Properties

Link copied to clipboard
private Map<String, String> args

The special arguments for generating which will overwrite MindustryAssetsExtension.args

Link copied to clipboard
private String className

Ihe name of generated class.

Link copied to clipboard
private String generator

The name of a generator, which has been registered in ResourceClassGeneratorRegistry or MindustryAssetsExtension.generators.

Link copied to clipboard
private String group

The resource group.

Link copied to clipboard
private NameRule nameRule

The name rule of resources. NameRule.Kebab as default