You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, patterns usually come from the core part of Worleedit or FAWE. The patterns can be found in the following path: [worldedit-core/src/main/java/com/fastasyncworldedit/core/function/pattern](https://intellectualsites.github.io/fastasyncworldedit-javadocs/worldedit-core/com/fastasyncworldedit/core/extension/factory/parser/pattern/package-summary.html)
5
-
6
-
_The link refers you to the JavaDocs with the correct package_
7
-
8
-
In this example, we only refer to one pattern for the time being.
4
+
First of all, patterns usually come from the core part of WorldEdit or FAWE. You can find all existing patterns [here](https://intellectualsites.github.io/fastasyncworldedit-javadocs/worldedit-core/com/sk89q/worldedit/function/pattern/Pattern.html)
9
5
10
6
## Biome Cuboid Example
11
7
Given are 3 things:
@@ -14,65 +10,45 @@ Given are 3 things:
14
10
- BiomeType: Badlands
15
11
16
12
```java
17
-
// Here we must first adapt the world as in the WorldEdit example or translate it into the WorldEdit specialized object.
// Now we open an EditSession, which contains the complete process or information during an edit process in the world. Through the try-and-catch-with-resources we let Java automatically close the resource EditSession after use
If no plug-in instance is available, you can also use the Task Manger. See below
43
-
{% endhint %}
44
-
Now we run the code Async to let Fawe manage server resources:
45
-
```java
46
-
// Now we wrap our code in a runnable with a functional interface and have it executed by Bukkit's scheduler system
47
-
Runnable executeCode = () -> {
48
-
// Now we open an EditSession, which contains the complete process or information during an edit process in the world. Through the try-and-catch-with-resources we let Java automatically close the resource EditSession after use
20
+
// Now we open an EditSession, which contains the complete process or information during an edit process in the world.
21
+
// Through the try-and-catch-with-resources we let Java automatically close the resource EditSession after use
_This code is still Fawe unspecific and can also be used in WorldEdit in this way_
59
40
60
-
---
61
-
62
-
We can also use the TaskManger from Fawe. To do this, we only need to replace a call.
63
-
41
+
### Let's set blocks async with FAWE
64
42
43
+
Now we run the code Async to let Fawe manage server resources:
65
44
```java
66
45
// Now we wrap our code in a runnable with a functional interface and have it executed by Bukkit's scheduler system
67
46
Runnable executeCode = () -> {
68
-
// Now we open an EditSession, which contains the complete process or information during an edit process in the world. Through the try-and-catch-with-resources we let Java automatically close the resource EditSession after use
0 commit comments