Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add shulkers to entity color property
- Loading branch information
1 parent
75e5352
commit 548ea89
Showing
2 changed files
with
30 additions
and
2 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
16 changes: 16 additions & 0 deletions
16
plugin/src/main/java/net/aufdemrand/denizen/utilities/entity/ShulkerHelper.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,16 @@ | ||
package net.aufdemrand.denizen.utilities.entity; | ||
|
||
import net.aufdemrand.denizen.objects.dEntity; | ||
import org.bukkit.DyeColor; | ||
import org.bukkit.entity.Shulker; | ||
|
||
public class ShulkerHelper { | ||
|
||
public static DyeColor getColor(dEntity shulker) { | ||
return ((Shulker) shulker.getBukkitEntity()).getColor(); | ||
} | ||
|
||
public static void setColor(dEntity shulker, DyeColor color) { | ||
((Shulker) shulker.getBukkitEntity()).setColor(color); | ||
} | ||
} |