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
|
## Creating and Registering a Material Group
|
||||||
Here is an example of you could create some material group
|
Here is an example of you could create some material group
|
||||||
```java
|
```java
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onConfigReady(){
|
public void onConfigReady(){
|
||||||
// Create group of zombie drops
|
// Create group of zombie drops
|
||||||
IncludeGroup zombieGroup = new IncludeGroup("zombieDrop");
|
IncludeGroup zombieGroup = new IncludeGroup("zombieDrop");
|
||||||
zombieGroup.addToPolicy(Material.ROTTEN_FLESH) // Please note "addToPolicy would be "exclude from group" for ExcludeGroup
|
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)
|
// Create conflict (see appropriate doc) (wiki wip)
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Material group can also be registered after the event is triggered. But not before.
|
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