Class MythicMobResultExtension
java.lang.Object
me.wolfyscript.customcrafting.utils.recipe_item.extension.ResultExtension
me.wolfyscript.customcrafting.utils.recipe_item.extension.MythicMobResultExtension
- All Implemented Interfaces:
me.wolfyscript.utilities.util.Keyed
-
Field Summary
Fields inherited from class me.wolfyscript.customcrafting.utils.recipe_item.extension.ResultExtension
description, icon, innerRadius, outerRadius, title -
Constructor Summary
ConstructorsConstructorDescriptionMythicMobResultExtension(String mobName, int mobLevel)MythicMobResultExtension(String mobName, int mobLevel, org.bukkit.util.Vector offset)MythicMobResultExtension(MythicMobResultExtension extension) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidonLocation(org.bukkit.Location location, @Nullable org.bukkit.entity.Player player)Called each time when the result was crafted on any location.voidonPlayer(@NotNull org.bukkit.entity.Player player, org.bukkit.Location location)Called only if a player is involved in the crafting of the result.voidonWorkstation(org.bukkit.block.Block block, @Nullable org.bukkit.entity.Player player)Called only when crafted in a workstation.protected voidspawnMob(org.bukkit.Location origin)Methods inherited from class me.wolfyscript.customcrafting.utils.recipe_item.extension.ResultExtension
getEntitiesInRange, getInnerRadius, getNamespacedKey, getOuterRadius, onCraft, setInnerRadius, setOuterRadius
-
Constructor Details
-
MythicMobResultExtension
public MythicMobResultExtension() -
MythicMobResultExtension
-
MythicMobResultExtension
-
MythicMobResultExtension
-
-
Method Details
-
onWorkstation
public void onWorkstation(org.bukkit.block.Block block, @Nullable @Nullable org.bukkit.entity.Player player)Description copied from class:ResultExtensionCalled only when crafted in a workstation. Not called if no block is involved!- Specified by:
onWorkstationin classResultExtension- Parameters:
block- The block of the workstation.player- The player that might be involved in the crafting. Might be Null if the action didn't involve a player.
-
onLocation
public void onLocation(org.bukkit.Location location, @Nullable @Nullable org.bukkit.entity.Player player)Description copied from class:ResultExtensionCalled each time when the result was crafted on any location. The player might be null.- Specified by:
onLocationin classResultExtension- Parameters:
location- The location of the inventory, the result was crafted in.player- The player that crafted the item or null if it was crafted by a block.
-
onPlayer
public void onPlayer(@NotNull @NotNull org.bukkit.entity.Player player, org.bukkit.Location location)Description copied from class:ResultExtensionCalled only if a player is involved in the crafting of the result.- Specified by:
onPlayerin classResultExtension- Parameters:
player- The player that crafted the result.location- The location of the inventory, the result was crafted in.
-
clone
- Specified by:
clonein classResultExtension
-
spawnMob
protected void spawnMob(org.bukkit.Location origin)
-