9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2026-01-06 15:51:30 +00:00

Resolvers

This commit is contained in:
cyberpwn
2022-06-30 19:31:13 -04:00
parent 0a2e3e5e88
commit 8b124bf298
28 changed files with 410 additions and 46 deletions

View File

@@ -59,14 +59,21 @@ compileJava {
shadowJar {
//minimize()
append("plugin.yml")
relocate 'com.volmit.fukkit', 'com.volmit.iris.util.fukkit'
relocate 'com.dfsek.paralithic', 'com.volmit.iris.util.paralithic'
relocate 'art.arcane.amulet', 'com.volmit.iris.util.amulet'
relocate 'com.volmit.fukkit', 'com.volmit.iris.util.fukkit'
relocate 'manifold', 'com.volmit.iris.util.manifold'
relocate 'art.arcane.source', 'com.volmit.iris.util.source'
relocate 'ChumBukkit.extensions', 'com.volmit.iris.util.extensions'
relocate 'Fukkit.extensions', 'com.volmit.iris.util.extensions'
relocate 'Amulet.extensions', 'com.volmit.iris.util.extensions'
relocate 'Iris.extensions', 'com.volmit.iris.util.extensions'
dependencies {
include(dependency('art.arcane.source:Source'))
include(dependency('art.arcane:Amulet'))
include(dependency('com.volmit:Fukkit'))
include(dependency('systems.manifold:'))
include(dependency("com.dfsek:Paralithic:"))
include(dependency(":engine"))
}
}

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.Chunk;
package IrisBukkit.extensions.org.bukkit.Chunk;
import com.volmit.iris.platform.bukkit.wrapper.BukkitChunk;
import manifold.ext.rt.api.Extension;

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.NamespacedKey;
package IrisBukkit.extensions.org.bukkit.NamespacedKey;
import com.volmit.iris.platform.bukkit.wrapper.BukkitKey;
import manifold.ext.rt.api.Extension;

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.World;
package IrisBukkit.extensions.org.bukkit.World;
import com.volmit.iris.platform.bukkit.wrapper.BukkitWorld;
import manifold.ext.rt.api.Extension;

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.block.Biome;
package IrisBukkit.extensions.org.bukkit.block.Biome;
import com.volmit.iris.platform.bukkit.wrapper.BukkitBiome;
import com.volmit.iris.platform.bukkit.wrapper.BukkitKey;

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.block.data.BlockData;
package IrisBukkit.extensions.org.bukkit.block.data.BlockData;
import com.volmit.iris.platform.bukkit.wrapper.BukkitBlock;
import com.volmit.iris.platform.bukkit.wrapper.BukkitKey;

View File

@@ -1,4 +1,4 @@
package Iris.extensions.org.bukkit.entity.Player;
package IrisBukkit.extensions.org.bukkit.entity.Player;
import com.volmit.iris.platform.bukkit.wrapper.BukkitPlayer;
import manifold.ext.rt.api.Extension;

View File

@@ -34,6 +34,7 @@ public class IrisBukkit extends JavaPlugin implements IrisPlatform {
getServer().getScheduler().scheduleSyncDelayedTask(this, () -> {
World world = Bukkit.createWorld(new WorldCreator("iristests/" + UUID.randomUUID()).generator(new IrisBukkitChunkGenerator(this, EngineConfiguration.builder()
.timings(true).mutable(true)
.build())));
for(Player i : Bukkit.getOnlinePlayers())
{
@@ -89,7 +90,8 @@ public class IrisBukkit extends JavaPlugin implements IrisPlatform {
public Stream<PlatformBlock> getBlocks() {
//This is because it's a method extension
//noinspection Convert2MethodRef
return Arrays.stream(Material.values()).parallel().filter((i) -> !i.isLegacy())
return Arrays.stream(Material.values())
.filter(i -> !i.isLegacy())
.filter(Material::isBlock)
.map(Material::createBlockData).map(i -> i.bukkitBlock());
}

View File

@@ -1,3 +1,7 @@
name: Iris
main: com.volmit.iris.platform.bukkit.IrisBukkit
version: 1.0.0
version: 1.0.0
api-version: 1.19
libraries:
- org.apache-extras.beanshell:bsh:2.0b6
- com.google.code.gson:gson:2.8.9