-
-
Notifications
You must be signed in to change notification settings - Fork 103
/
AssignmentScriptContainer.java
50 lines (42 loc) · 1.89 KB
/
AssignmentScriptContainer.java
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
package net.aufdemrand.denizen.scripts.containers.core;
import net.aufdemrand.denizen.scripts.containers.ScriptContainer;
import org.bukkit.configuration.ConfigurationSection;
// <--[language]
// @name Assignment Script-Containers
// @group Script Container System
// @description
// Assignment script-containers provide functionality to NPCs by 'assignment' of the container. Assignment
// scripts are meant to be used when customizing the normal behavior of NPCs. This can be used on a 'per-NPC' basis,
// but the encouraged approach is to design assignment scripts in a way that they can be used for multiple NPCs,
// perhaps with the use of constants or flags to determine specific information required by the scripts.
// Features unique to assignment script-containers include 'actions', 'constants', and 'interact script' assignment.
// Like any script, the ability to run local utility scripts can be accomplished as well. This allows fully
// interactive NPCs to be built purely with Assignment Scripts, and for advanced situations, world scripts and
// interact scripts can provide more functionality.
// Basic structure of an assignment script:
// <code>
// Assignment script container name:
// type: assignment
//
// actions:
// on <action>:
// - ...
//
// default constants:
// <constant_name>: <value>
// <constant_list>:
// - ...
//
// interact scripts:
// - <priority> <interact_script_name>
// - ...
// </code>
//
// Unlike other script containers, all part of an assignment script are optional. The three features provided can be
// used together, but do not require one another.
// -->
public class AssignmentScriptContainer extends ScriptContainer {
public AssignmentScriptContainer(ConfigurationSection configurationSection, String scriptContainerName) {
super(configurationSection, scriptContainerName);
}
}