-
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.
- Fixed EventRegister#registerEvent method where for some events it would throw an error (stacked events) - Added HeadInventoryItem.java which extends InventoryItem.java and basically converts String minecraft value head into head item - Changed naming of some methods in HeadManager.java (they are split into Base64 methods and Minecraft URL) - Changed way how they items in inventory are generated (instead of taking the old item, they are generated with fixed lore) - Removed persistentDataContainer from ItemBuilder.java since from 1.6.6 we are working with item stacks and not custom generated items - Changed a few things in MySqlDatabases (mostly null safety) - Added OpMap#putAll method and new constructors (no idea why they weren't before) - Fixed bug with PlaceholderAPI.java where the custom extension would disappear after /papi restart - Added MathUtils#convertToRomanNumber method which generates roman number (in String) up to 3999
- Loading branch information
1 parent
3d36cbb
commit d51bc05
Showing
16 changed files
with
244 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,4 @@ | |
|
||
public class OpC extends OpPlugin { | ||
|
||
@Override | ||
public void enable() { | ||
|
||
} | ||
|
||
@Override | ||
public void disable() { | ||
|
||
} | ||
} |
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
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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/me/opkarol/opc/api/gui/items/HeadInventoryItem.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,21 @@ | ||
package me.opkarol.opc.api.gui.items; | ||
|
||
import me.opkarol.opc.api.gui.events.OnItemClicked; | ||
import me.opkarol.opc.api.gui.holder.item.InventoryItemEventHolder; | ||
import me.opkarol.opc.api.tools.HeadManager; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public class HeadInventoryItem extends InventoryItem { | ||
public HeadInventoryItem(String minecraftValue, InventoryItemEventHolder itemEventHolder) { | ||
super(HeadManager.getHeadFromMinecraftValueUrl(minecraftValue), itemEventHolder); | ||
} | ||
|
||
public HeadInventoryItem(String minecraftValue, Consumer<OnItemClicked> itemEventHolder) { | ||
super(HeadManager.getHeadFromMinecraftValueUrl(minecraftValue), itemEventHolder); | ||
} | ||
|
||
public HeadInventoryItem(String minecraftValue) { | ||
super(HeadManager.getHeadFromMinecraftValueUrl(minecraftValue)); | ||
} | ||
} |
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.