Dimensions API
  • Setting up
  • Creating an addon
  • Example Addon
  • Reference
    • API Reference
      • CustomPortal
      • CompletePortal
      • PortalGeometry
      • Events
Powered by GitBook
On this page
  • Creating a new portal
  • Overriding portal
  1. Reference
  2. API Reference

CustomPortal

Custom portal is used to represent a type of portal that the plugin uses to check if something like that exists in the world

PreviousAPI ReferenceNextCompletePortal

Last updated 2 years ago

Creating a new portal

You should not create a CustomPortal since it should only be loaded by the from the ./plugins/Dimensions/Portals/ directory.

Overriding portal

Addons should not have much control over the CustomPortal that is being loaded since they are supposed to add features to Dimensions and not override them. But there are these methods that you can use to override Dimensions portals without too much work and event cancelling:

CustomPortalLoader
CustomPortal#setInsideBlockData(BlockData)
PortalGeometry#setCustomGeometry​(CustomPortal, PortalGeometry)