Skip to content

Commit

Permalink
Undid last commit because it was broken af
Browse files Browse the repository at this point in the history
  • Loading branch information
tbvns committed Jan 28, 2024
1 parent 34c9045 commit d1b206a
Show file tree
Hide file tree
Showing 23 changed files with 58 additions and 35 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
</repositories>

<dependencies>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>5.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Block;
package xyz.prismenetwork.kelpmodloader.Block;

import org.bukkit.Material;
import org.bukkit.Server;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Block;
package xyz.prismenetwork.kelpmodloader.Block;

public class ModdedBlock {
public String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Block;
package xyz.prismenetwork.kelpmodloader.Block;

import xyz.prismenetwork.kelpmodloader.Constant;

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/xyz/prismenetwork/kelpmodloader/Constant.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package xyz.prismenetwork.kelpmodloader;

import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Item.ModdedItem;
import xyz.prismenetwork.kelpmodloader.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Item.ModdedItem;
import xyz.prismenetwork.kelpmodloader.Mods.ModsObject;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Models.Model;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Texture.Texture;
import xyz.prismenetwork.kelpmodloader.Models.Model;
import xyz.prismenetwork.kelpmodloader.Texture.Texture;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.Utils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Item;
package xyz.prismenetwork.kelpmodloader.Item;

import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.ModdedBlock;
import org.bukkit.Material;
import xyz.prismenetwork.kelpmodloader.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Constant;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Item;
package xyz.prismenetwork.kelpmodloader.Item;

public class ItemType {
public static final String Default = "minecraft:item/generated";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Item;
package xyz.prismenetwork.kelpmodloader.Item;

import org.bukkit.Material;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Item;
package xyz.prismenetwork.kelpmodloader.Item;

import org.bukkit.Material;
import xyz.prismenetwork.kelpmodloader.Constant;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package xyz.prismenetwork.kelpmodloader;

import org.bukkit.Material;
import org.bukkit.plugin.java.JavaPlugin;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.CreateBlock;
import xyz.prismenetwork.kelpmodloader.Block.CreateBlock;
import xyz.prismenetwork.kelpmodloader.EventHandler.BlockPlaceEvent;
import xyz.prismenetwork.kelpmodloader.EventHandler.BlockUpdateEvent;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Item.GenerateBlockItems;
import xyz.prismenetwork.kelpmodloader.Item.GenerateBlockItems;
import xyz.prismenetwork.kelpmodloader.Mods.ModsLoader;
import xyz.prismenetwork.kelpmodloader.Pack.CreatePack;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Models;
package xyz.prismenetwork.kelpmodloader.Models;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Models;
package xyz.prismenetwork.kelpmodloader.Models;

import xyz.prismenetwork.kelpmodloader.ModsAPI.Texture.Texture;
import xyz.prismenetwork.kelpmodloader.Item.ItemType;
import xyz.prismenetwork.kelpmodloader.Texture.Texture;

import java.io.File;
import java.io.InputStream;
import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Models;
package xyz.prismenetwork.kelpmodloader.Models;

import xyz.prismenetwork.kelpmodloader.Texture.TextureType;

public class ModelType {
public static ModelType Block() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Models;
package xyz.prismenetwork.kelpmodloader.Models;

import org.bukkit.Material;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.Item.ModdedItem;

import java.io.File;
import java.io.InputStream;

public class RegisterModels {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
package xyz.prismenetwork.kelpmodloader.Mods;

import org.bukkit.Material;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.RegisterBlock;
import org.slf4j.Logger;
import xyz.prismenetwork.kelpmodloader.Block.RegisterBlock;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Item.RegisterItem;
import xyz.prismenetwork.kelpmodloader.Item.RegisterItem;
import xyz.prismenetwork.kelpmodloader.KelpModLoader;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Models.ModelType;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Models.RegisterModels;
import xyz.prismenetwork.kelpmodloader.Models.ModelType;
import xyz.prismenetwork.kelpmodloader.Models.RegisterModels;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Mods;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Texture.RegisterTexture;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Texture.TextureType;
import xyz.prismenetwork.kelpmodloader.Texture.RegisterTexture;
import xyz.prismenetwork.kelpmodloader.Texture.TextureType;

import java.io.*;
import java.lang.reflect.Method;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Item.ModdedItem;
import xyz.prismenetwork.kelpmodloader.Item.ModdedItem;

public class ItemUtils {
public static boolean isModed(ItemStack itemStack) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.plugin.Plugin;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.Item.ItemType;
import xyz.prismenetwork.kelpmodloader.KelpModLoader;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Models.ModelType;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Texture.TextureType;
import xyz.prismenetwork.kelpmodloader.Models.ModelType;
import xyz.prismenetwork.kelpmodloader.Texture.TextureType;

import java.io.File;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package xyz.prismenetwork.kelpmodloader.Pack;

import org.bukkit.Material;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Block.ModdedBlock;
import xyz.prismenetwork.kelpmodloader.Constant;
import xyz.prismenetwork.kelpmodloader.ModsAPI.Item.ModdedItem;
import xyz.prismenetwork.kelpmodloader.Item.ModdedItem;
import xyz.prismenetwork.kelpmodloader.KelpModLoader;

import java.io.BufferedWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Texture;
package xyz.prismenetwork.kelpmodloader.Texture;

import xyz.prismenetwork.kelpmodloader.Constant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Texture;
package xyz.prismenetwork.kelpmodloader.Texture;

import java.io.InputStream;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package xyz.prismenetwork.kelpmodloader.ModsAPI.Texture;
package xyz.prismenetwork.kelpmodloader.Texture;

public class TextureType {
public static TextureType Block() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ name: KelpModLoader
version: '${project.version}'
main: xyz.prismenetwork.kelpmodloader.KelpModLoader
api-version: '1.20'
depend:
- ProtocolLib

0 comments on commit d1b206a

Please sign in to comment.