Class DimensionImpl

java.lang.Object
dev.wyck.model.level.dimension.DimensionImpl
All Implemented Interfaces:
Dimension, Wrapper, Keyed

@NullMarked @AsOf("2.4.0") @Internal public final class DimensionImpl extends Object implements Dimension
This class represents a custom dimension type implementation.
Since:
2.4.0
  • Constructor Details

  • Method Details

    • resourceKey

      public ResourceKey resourceKey()
      Description copied from interface: Dimension
      The key of this dimension type.
      Specified by:
      resourceKey in interface Dimension
      Returns:
      the key of this dimension type.
    • hasFixedTime

      public boolean hasFixedTime()
      Description copied from interface: Dimension
      Whether this dimension type has a fixed time.
      Specified by:
      hasFixedTime in interface Dimension
      Returns:
      whether this dimension type has a fixed time.
    • hasSkyLight

      public boolean hasSkyLight()
      Description copied from interface: Dimension
      If there should be light that comes from the sky.
      Specified by:
      hasSkyLight in interface Dimension
      Returns:
      whether this dimension type has sky light.
    • hasCeiling

      public boolean hasCeiling()
      Description copied from interface: Dimension
      Whether this dimension type has a ceiling (e.g., the nether).
      Specified by:
      hasCeiling in interface Dimension
      Returns:
      whether this dimension type has a ceiling.
    • hasEnderDragonFight

      public boolean hasEnderDragonFight()
      Description copied from interface: Dimension
      Whether this dimension type has an ender dragon fight.
      Specified by:
      hasEnderDragonFight in interface Dimension
      Returns:
      whether this dimension type has an ender dragon fight.
    • coordinateScale

      public double coordinateScale()
      Description copied from interface: Dimension
      The coordinate scale of this dimension type.
      Specified by:
      coordinateScale in interface Dimension
      Returns:
      the coordinate scale of this dimension type.
    • minY

      public int minY()
      Description copied from interface: Dimension
      The minimum Y of this dimension type.
      Specified by:
      minY in interface Dimension
      Returns:
      the minimum Y of this dimension type.
    • height

      public int height()
      Description copied from interface: Dimension
      The height of this dimension type.
      Specified by:
      height in interface Dimension
      Returns:
      the height of this dimension type.
    • logicalHeight

      public int logicalHeight()
      Description copied from interface: Dimension
      The logical height of this dimension type.
      Specified by:
      logicalHeight in interface Dimension
      Returns:
      the logical height of this dimension type.
    • infiniburn

      public Infiniburn infiniburn()
      Description copied from interface: Dimension
      A tag of blocks that will burn infinitely in this dimension type.
      Specified by:
      infiniburn in interface Dimension
      Returns:
      the infiniburn of this dimension type.
    • ambientLight

      public float ambientLight()
      Description copied from interface: Dimension
      The ambient light of this dimension type.
      Specified by:
      ambientLight in interface Dimension
      Returns:
      the ambient light level of this dimension type.
    • monsterSettings

      public MonsterSettings monsterSettings()
      Description copied from interface: Dimension
      The monster settings of this dimension type.
      Specified by:
      monsterSettings in interface Dimension
      Returns:
      the monster settings of this dimension type.
    • skybox

      public Skybox skybox()
      Description copied from interface: Dimension
      The skybox of this dimension type.
      Specified by:
      skybox in interface Dimension
      Returns:
      the skybox of this dimension type.
    • cardinalLightType

      public CardinalLightType cardinalLightType()
      Description copied from interface: Dimension
      The cardinal light type of this dimension type.
      Specified by:
      cardinalLightType in interface Dimension
      Returns:
      the cardinal light type of this dimension type.
    • attributes

      public EnvironmentAttributeMap attributes()
      Description copied from interface: Dimension
      The attributes of this dimension type.
      Specified by:
      attributes in interface Dimension
      Returns:
      the attributes of this dimension type.
    • timelines

      public TimelineSet timelines()
      Description copied from interface: Dimension
      The timelines of this dimension type.
      Specified by:
      timelines in interface Dimension
      Returns:
      the timelines of this dimension type.
    • defaultClock

      public Optional<WorldClock> defaultClock()
      Description copied from interface: Dimension
      The default clock of this dimension type.
      Specified by:
      defaultClock in interface Dimension
      Returns:
      the default clock of this dimension type.
    • isSimilar

      @AsOf("2.4.0") public boolean isSimilar(Dimension other)
      Description copied from interface: Dimension
      Checks if this dimension type is similar to another.
      Specified by:
      isSimilar in interface Dimension
      Parameters:
      other - the other dimension type to compare to
      Returns:
      whether this dimension type is similar to the other
    • key

      public Key key()
      Specified by:
      key in interface Keyed
    • toMinecraft

      public Object toMinecraft()
      Description copied from interface: Wrapper
      Convert this handle to the real Minecraft object.
      Specified by:
      toMinecraft in interface Wrapper
      Returns:
      the real Minecraft object