Package be.seeseemelk.mockbukkit
Class RaidMock
java.lang.Object
be.seeseemelk.mockbukkit.RaidMock
- All Implemented Interfaces:
PersistentDataViewHolder,PersistentDataHolder,Raid
Mock implementation of a
Raid.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.Raid
Raid.RaidStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongint@NotNull BossBarintgetId()@NotNull Location@NotNull PersistentDataContainerint@NotNull Raid.RaidStatusintfloatintbooleanvoidsetActiveTicks(long activeTicks) Set the amount of time in ticks this raid has existed.voidsetBadOmenLevel(int badOmenLevel) voidSet theUUIDof all heroes in this raid.voidsetRaiders(List<Raider> raiders) Set all the remainingRaiderin the current wave.voidsetSpawnedGroups(int spawnedGroups) Set the number of raider groups which have already spawned.voidsetStarted(boolean started) Sets whether this raid has started or not.voidsetStatus(Raid.RaidStatus status) Set the current status of the raid.voidsetWaves(int waves) Set the number of waves in this raid (excluding the additional waves).voidsetWaves(Difficulty difficulty) Set the number of waves in this raid based on a difficulty level.
-
Constructor Details
-
RaidMock
-
-
Method Details
-
isStarted
public boolean isStarted() -
setStarted
public void setStarted(boolean started) Sets whether this raid has started or not.- Parameters:
started- Is raid started?
-
getActiveTicks
public long getActiveTicks()- Specified by:
getActiveTicksin interfaceRaid
-
setActiveTicks
public void setActiveTicks(long activeTicks) Set the amount of time in ticks this raid has existed.- Parameters:
activeTicks- ticks since start.
-
getBadOmenLevel
public int getBadOmenLevel()- Specified by:
getBadOmenLevelin interfaceRaid
-
setBadOmenLevel
public void setBadOmenLevel(int badOmenLevel) - Specified by:
setBadOmenLevelin interfaceRaid
-
getLocation
- Specified by:
getLocationin interfaceRaid
-
getStatus
-
setStatus
Set the current status of the raid.- Parameters:
status- raid status
-
getSpawnedGroups
public int getSpawnedGroups()- Specified by:
getSpawnedGroupsin interfaceRaid
-
setSpawnedGroups
public void setSpawnedGroups(int spawnedGroups) Set the number of raider groups which have already spawned.- Parameters:
spawnedGroups- the number of groups.
-
getTotalGroups
public int getTotalGroups()- Specified by:
getTotalGroupsin interfaceRaid
-
getTotalWaves
public int getTotalWaves()- Specified by:
getTotalWavesin interfaceRaid
-
setWaves
public void setWaves(int waves) Set the number of waves in this raid (excluding the additional waves).- Parameters:
waves- number waves.
-
setWaves
Set the number of waves in this raid based on a difficulty level.- When difficulty is EASY the wave count is 3.
- When difficulty is NORMAL the wave count is 5.
- When difficulty is HARD the wave count is 7.
- Any other difficulty wave count is 0.
- Parameters:
difficulty- the difficulty level
-
getTotalHealth
public float getTotalHealth()- Specified by:
getTotalHealthin interfaceRaid
-
getHeroes
-
setHeroes
Set theUUIDof all heroes in this raid.- Parameters:
heroes- a set containing heroes ids
-
getRaiders
- Specified by:
getRaidersin interfaceRaid
-
setRaiders
Set all the remainingRaiderin the current wave.- Parameters:
raiders- a list of current raiders.
-
getId
public int getId() -
getBossBar
- Specified by:
getBossBarin interfaceRaid
-
getPersistentDataContainer
- Specified by:
getPersistentDataContainerin interfacePersistentDataHolder- Specified by:
getPersistentDataContainerin interfacePersistentDataViewHolder
-