-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from SourceWriters/main
Remove main branch cause v4 is main
- Loading branch information
Showing
59 changed files
with
1,655 additions
and
1,360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
legacy-1_17-compat/src/main/java/net/sourcewriters/spigot/rwg/legacy/api/impl/Accessors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.sourcewriters.spigot.rwg.legacy.api.impl; | ||
|
||
import org.bukkit.craftbukkit.v1_17_R1.CraftWorld; | ||
import org.bukkit.craftbukkit.v1_17_R1.block.CraftBlockEntityState; | ||
import org.bukkit.craftbukkit.v1_17_R1.generator.CustomChunkGenerator; | ||
|
||
import net.sourcewriters.spigot.rwg.legacy.api.util.java.reflect.Accessor; | ||
import net.sourcewriters.spigot.rwg.legacy.api.version.provider.VersionProvider; | ||
|
||
public final class Accessors { | ||
|
||
private static final VersionProvider PROVIDER = VersionProvider.get(); | ||
|
||
public static final Accessor CUSTOM_CHUNK_GENERATOR = Accessor.of(CustomChunkGenerator.class).findField("generator", "generator"); | ||
public static final Accessor CRAFT_WORLD = Accessor.of(CraftWorld.class).findField("generator", "generator"); | ||
public static final Accessor CRAFT_BLOCK_ENTITY_STATE = Accessor.of(CraftBlockEntityState.class).findField("entity", "getTileEntity"); | ||
public static final Accessor CRAFT_META_SKULL = PROVIDER.craftBukkitAccess("inventory.CraftMetaSkull").findField("profile", "profile"); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...c/main/java/net/sourcewriters/spigot/rwg/legacy/api/impl/version/handle/GlobalLookup.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"api": 3, | ||
"api": 4, | ||
"version": "${project.version}", | ||
"minecraft": [ | ||
"1.17" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...y-1_17_1-compat/src/main/java/net/sourcewriters/spigot/rwg/legacy/api/impl/Accessors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.sourcewriters.spigot.rwg.legacy.api.impl; | ||
|
||
import org.bukkit.craftbukkit.v1_17_R1.CraftWorld; | ||
import org.bukkit.craftbukkit.v1_17_R1.block.CraftBlockEntityState; | ||
import org.bukkit.craftbukkit.v1_17_R1.generator.CustomChunkGenerator; | ||
|
||
import net.sourcewriters.spigot.rwg.legacy.api.util.java.reflect.Accessor; | ||
import net.sourcewriters.spigot.rwg.legacy.api.version.provider.VersionProvider; | ||
|
||
public final class Accessors { | ||
|
||
private static final VersionProvider PROVIDER = VersionProvider.get(); | ||
|
||
public static final Accessor CUSTOM_CHUNK_GENERATOR = Accessor.of(CustomChunkGenerator.class).findField("generator", "generator"); | ||
public static final Accessor CRAFT_WORLD = Accessor.of(CraftWorld.class).findField("generator", "generator"); | ||
public static final Accessor CRAFT_BLOCK_ENTITY_STATE = Accessor.of(CraftBlockEntityState.class).findField("entity", "getTileEntity"); | ||
public static final Accessor CRAFT_META_SKULL = PROVIDER.craftBukkitAccess("inventory.CraftMetaSkull").findField("profile", "profile"); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...c/main/java/net/sourcewriters/spigot/rwg/legacy/api/impl/version/handle/GlobalLookup.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.