Class DimensionManagerImpl
java.lang.Object
com.github.imdabigboss.easydatapack.backend.managers.DimensionManagerImpl
- All Implemented Interfaces:
DimensionManager,org.bukkit.event.Listener
public class DimensionManagerImpl
extends Object
implements org.bukkit.event.Listener, DimensionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid@NonNull List<CustomDimension>Gets a list of all registered custom dimensions.getDimension(@NonNull String name)Gets a custom dimension from a name.getDimensionFromPortalMaterial(org.bukkit.Material material)voidonEntitySpawn(org.bukkit.event.entity.CreatureSpawnEvent event)voidonPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)voidonPlayerPortalEvent(org.bukkit.event.player.PlayerPortalEvent event)voidregisterCustomDimension(CustomDimension dimension)
-
Constructor Details
-
DimensionManagerImpl
-
-
Method Details
-
registerCustomDimension
- Throws:
CustomDimensionException
-
createWorlds
public void createWorlds() -
getDimension
Description copied from interface:DimensionManagerGets a custom dimension from a name.- Specified by:
getDimensionin interfaceDimensionManager- Parameters:
name- the name of the custom dimension- Returns:
- the custom dimension with the given name. Will be null if the dimension does not exist.
-
getCustomDimensions
Description copied from interface:DimensionManagerGets a list of all registered custom dimensions.- Specified by:
getCustomDimensionsin interfaceDimensionManager- Returns:
- a list of all registered custom dimensions
-
getDimensionFromPortalMaterial
-
onPlayerPortalEvent
public void onPlayerPortalEvent(org.bukkit.event.player.PlayerPortalEvent event) -
onPlayerInteract
public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) -
onEntitySpawn
public void onEntitySpawn(org.bukkit.event.entity.CreatureSpawnEvent event)
-