mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-30 04:34:43 +02:00
Repair rewrite continues
This commit is contained in:
19
src/main/java/com/gmail/nossr50/bukkit/BukkitFactory.java
Normal file
19
src/main/java/com/gmail/nossr50/bukkit/BukkitFactory.java
Normal file
@ -0,0 +1,19 @@
|
||||
package com.gmail.nossr50.bukkit;
|
||||
|
||||
import com.gmail.nossr50.datatypes.items.BukkitMMOItem;
|
||||
import com.gmail.nossr50.util.nbt.RawNBT;
|
||||
|
||||
/**
|
||||
* Used to convert or construct platform independent types into Bukkit types
|
||||
*/
|
||||
public class BukkitFactory {
|
||||
|
||||
/**
|
||||
* Creates a BukkitMMOItem which contains Bukkit implementations for the type MMOItem
|
||||
* @return a new BukkitMMOItem
|
||||
*/
|
||||
public static BukkitMMOItem createBukkitMMOItem(String namespaceKey, int amount, RawNBT rawNBT) {
|
||||
return new BukkitMMOItem(namespaceKey, amount, rawNBT);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user