mirror of
https://github.com/songoda/EpicBosses.git
synced 2024-12-23 08:27:49 +01:00
1.0.0-SNAPSHOT-U204
+ Updated the create new boss entity to have a default targeting
This commit is contained in:
parent
b2fd40eb1c
commit
7ec14ec2a1
@ -381,7 +381,7 @@ public class BossAPI {
|
|||||||
MessagesElement messagesElement = new MessagesElement(new OnSpawnMessageElement("", -1), new OnDeathMessageElement("", "", -1, 5), new TauntElement(60, 100, new ArrayList<>()));
|
MessagesElement messagesElement = new MessagesElement(new OnSpawnMessageElement("", -1), new OnDeathMessageElement("", "", -1, 5), new TauntElement(60, 100, new ArrayList<>()));
|
||||||
CommandsElement commandsElement = new CommandsElement("", "");
|
CommandsElement commandsElement = new CommandsElement("", "");
|
||||||
|
|
||||||
BossEntity bossEntity = new BossEntity(true, null, false, 100.0, entityStatsElements, skillsElement, dropsElement, messagesElement, commandsElement);
|
BossEntity bossEntity = new BossEntity(true, null, "RandomNearby", false, 100.0, entityStatsElements, skillsElement, dropsElement, messagesElement, commandsElement);
|
||||||
boolean result = PLUGIN.getBossEntityContainer().saveData(name, bossEntity);
|
boolean result = PLUGIN.getBossEntityContainer().saveData(name, bossEntity);
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
@ -27,9 +27,10 @@ public class BossEntity {
|
|||||||
@Expose @Getter private final SkillsElement skills;
|
@Expose @Getter private final SkillsElement skills;
|
||||||
@Expose @Getter private final DropsElement drops;
|
@Expose @Getter private final DropsElement drops;
|
||||||
|
|
||||||
public BossEntity(boolean editing, String spawnItem, boolean buyable, Double price, List<EntityStatsElement> entityStats, SkillsElement skills, DropsElement drops, MessagesElement messages, CommandsElement commands) {
|
public BossEntity(boolean editing, String spawnItem, String targeting, boolean buyable, Double price, List<EntityStatsElement> entityStats, SkillsElement skills, DropsElement drops, MessagesElement messages, CommandsElement commands) {
|
||||||
this.editing = editing;
|
this.editing = editing;
|
||||||
this.entityStats = entityStats;
|
this.entityStats = entityStats;
|
||||||
|
this.targeting = targeting;
|
||||||
this.spawnItem = spawnItem;
|
this.spawnItem = spawnItem;
|
||||||
this.skills = skills;
|
this.skills = skills;
|
||||||
this.drops = drops;
|
this.drops = drops;
|
||||||
|
2
pom.xml
2
pom.xml
@ -19,7 +19,7 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<plugin.version>1.0.0-U203</plugin.version>
|
<plugin.version>1.0.0-U204</plugin.version>
|
||||||
<plugin.name>EpicBosses</plugin.name>
|
<plugin.name>EpicBosses</plugin.name>
|
||||||
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
||||||
<plugin.author>AMinecraftDev</plugin.author>
|
<plugin.author>AMinecraftDev</plugin.author>
|
||||||
|
Loading…
Reference in New Issue
Block a user