AssetBatch

public final class AssetBatch implements Serializable

An asset batch. It may be involved in generating resource class.

Constructors

Link copied to clipboard
public AssetBatch AssetBatch(    MindustryAssetsExtension.AssetBatchType type,     Boolean enableGenClass,     File dir,     File root,     ArrayList<Object> dependsOn)

Functions

Link copied to clipboard
public final Unit dependsOn(Object task)
Link copied to clipboard
public final ArrayList<Object> getDependsOn()

What task the generating depends on. It's useful to control the building chains.

Link copied to clipboard
public final File getDir()

The directory of resources.

Link copied to clipboard
public final Boolean getEnableGenClass()

Whether to enable generating resource class.

Link copied to clipboard
public final Unit getGenClass()
Link copied to clipboard
public final Unit getNoGenClass()
Link copied to clipboard
public final File getRoot()

The root directory of resources. It'll be used when you want to include a nested folder

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

The type of this, AssetBatchType

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

Set root to file

public final Unit rootAt(String path)

Set root to path

Link copied to clipboard
public final Unit setDependsOn(ArrayList<Object> dependsOn)

What task the generating depends on. It's useful to control the building chains.

Link copied to clipboard
public final Unit setDir(File dir)

The directory of resources.

Link copied to clipboard
public final Unit setEnableGenClass(Boolean enableGenClass)

Whether to enable generating resource class.

Link copied to clipboard
public final Unit setRoot(File root)

The root directory of resources. It'll be used when you want to include a nested folder

Link copied to clipboard
public final Unit setType(MindustryAssetsExtension.AssetBatchType type)

The type of this, AssetBatchType

Properties

Link copied to clipboard
private ArrayList<Object> dependsOn

What task the generating depends on. It's useful to control the building chains.

Link copied to clipboard
private File dir

The directory of resources.

Link copied to clipboard
private Boolean enableGenClass

Whether to enable generating resource class.

Link copied to clipboard
private final Unit genClass

Generate resource class of this batch.

Link copied to clipboard
private final Unit noGenClass

Do not generate resource class of this batch. It's default.

Link copied to clipboard
private File root

The root directory of resources. It'll be used when you want to include a nested folder

Link copied to clipboard
private MindustryAssetsExtension.AssetBatchType type

The type of this, AssetBatchType