This repository was archived by the owner on Jan 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAPI.java
More file actions
66 lines (54 loc) · 2.43 KB
/
API.java
File metadata and controls
66 lines (54 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package li.cil.architect.api;
import li.cil.architect.api.detail.ConverterAPI;
import li.cil.architect.common.api.CreativeTab;
/**
* Glue / actual references for the Architect API.
*/
public final class API {
/**
* The ID of the mod, i.e. the internal string it is identified by.
*/
public static final String MOD_ID = "architect";
/**
* The current version of the mod.
*/
public static final String MOD_VERSION = "@VERSION@";
// --------------------------------------------------------------------- //
// IMC Messages
/**
* Blacklist command, add a block to the blacklist so it is not handled by
* any of the built-in converters. Takes a ResourceLocation value.
*/
public static final String IMC_BLACKLIST = "blacklist";
/**
* Whitelist a block and provide some additional processing information.
* Takes a tag compound with a 'name' string entry that can be used to
* construct a ResourceLocation, an optional 'sortIndex' integer, an
* optional tag compound 'nbtFilter' and an optional tag compound
* 'nbtStripper'. The filter must be structured the same as an entry in the
* <code>whitelist.json</code> file, i.e. keys for allowed keys in a
* filtered tag compound, with arbitrary values, or another tag compound as
* value for nested filtering. Same goes for the compound defining tags to
* strip, except that keys present will be stripped, not kept.
*/
public static final String IMC_WHITELIST = "whitelist";
/**
* Add a block to block mapping, replacing a block with another in
* blueprints. Takes a tag compound with a 'from' and a 'to' entry, both
* of which must be strings that can be used to construct ResourceLocations.
*/
public static final String IMC_MAP_TO_BLOCK = "mapToBlock";
/**
* Add a block to item mapping, defining which item to associate with a
* serialized block when computing required materials. Takes a tag compound
* with a 'from' and a 'to' entry, both of which must be strings that can
* be used to construct ResourceLocations.
*/
public static final String IMC_MAP_TO_ITEM = "mapToItem";
// --------------------------------------------------------------------- //
public static CreativeTab creativeTab;
// Set in pre-init, prefer using static entry point classes instead.
public static ConverterAPI converterAPI;
private API() {
}
}