Package | Description |
---|---|
eu.wauz.wauzcore.events |
This package contains all custom event classes used in WauzCore.
|
eu.wauz.wauzcore.mobs.pets |
This package contains classes, that are used for the pet system.
|
Modifier and Type | Field and Description |
---|---|
private WauzPet |
PetObtainEvent.pet
The pet that was obtained.
|
Modifier and Type | Method and Description |
---|---|
WauzPet |
PetObtainEvent.getPet() |
Modifier and Type | Method and Description |
---|---|
static void |
PetObtainEvent.call(org.bukkit.entity.Player player,
WauzPet pet)
Creates and calls a new instance of the event.
|
Constructor and Description |
---|
PetObtainEvent(org.bukkit.entity.Player player,
WauzPet pet)
Creates a new instance of the event.
|
Modifier and Type | Field and Description |
---|---|
private WauzPet |
WauzActivePet.petType
The pet type.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,WauzPet> |
WauzPet.petMap
A map of all pets, indexed by key.
|
Modifier and Type | Method and Description |
---|---|
private static WauzPet |
WauzPet.getHigherRarityOffspring(WauzPetRarity rarity,
java.lang.String category)
Gets a new random pet, with a higher rarity than its parents.
|
private static WauzPet |
WauzPet.getLowerRarityOffspring(WauzPetRarity rarity,
java.lang.String category)
Gets a new random pet, with a lower rarity than its parents.
|
static WauzPet |
WauzPet.getOffspring(WauzPetRarity rarity,
java.lang.String category)
Gets a random new pet, based off its parent's rarity and category.
30% chance for a higher rarity, 60% for the same, 10% for a lower one.
|
static WauzPet |
WauzPet.getPet(java.lang.String petKey) |
WauzPet |
WauzActivePet.getPetType() |
private static WauzPet |
WauzPet.getSameRarityOffspring(WauzPetRarity rarity,
java.lang.String category)
Gets a new random pet, with the same rarity as its parents.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<WauzPet> |
WauzPet.getAllPets() |
static java.util.List<WauzPet> |
WauzPet.getMatchingPets(WauzPetRarity rarity,
java.lang.String category) |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack |
WauzPetEgg.getEggItem(org.bukkit.entity.Player owner,
WauzPet pet,
WauzPetAbility ability,
long hatchTime)
Generates an egg item stack for the given pet.
|
static void |
WauzActivePet.setOwner(org.bukkit.entity.Player player,
org.bukkit.entity.Entity petEntity,
WauzPet pet,
org.bukkit.inventory.ItemStack eggItemStack)
Adds a player to the owner map.
|
Constructor and Description |
---|
WauzActivePet(org.bukkit.entity.Player owner,
org.bukkit.entity.Entity petEntity,
WauzPet petType,
org.bukkit.inventory.ItemStack eggItemStack)
Creates a new active pet data.
|