mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Updated Material Group (markdown)
parent
1ec28b5460
commit
9619a38836
1 changed files with 26 additions and 26 deletions
|
|
@ -23,8 +23,8 @@ Adding a group to another group is not impacted by the type of group. For exampl
|
|||
## Creating and Registering a Material Group
|
||||
Here is an example of you could create some material group
|
||||
```java
|
||||
@EventHandler
|
||||
public void onConfigReady(){
|
||||
@EventHandler
|
||||
public void onConfigReady(){
|
||||
// Create group of zombie drops
|
||||
IncludeGroup zombieGroup = new IncludeGroup("zombieDrop");
|
||||
zombieGroup.addToPolicy(Material.ROTTEN_FLESH) // Please note "addToPolicy would be "exclude from group" for ExcludeGroup
|
||||
|
|
@ -51,7 +51,7 @@ Here is an example of you could create some material group
|
|||
// Create conflict (see appropriate doc) (wiki wip)
|
||||
// ...
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Material group can also be registered after the event is triggered. But not before.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue