Interface WorldTypeDataFetcher
- All Superinterfaces:
DataHolder, ValueContainer
- All Known Subinterfaces:
WorldType
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataHolder
DataHolder.Immutable<I>, DataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptiondefault floatGets the amount of lighting a client will play as an effect while traversing aworldof this type.default booleandefault doubledefault booleandefault WorldTypeEffecteffect()default Optional<MinecraftDayTime> default intfloor()Gets the minimumYvalue that blocks can exist within a world of this type.default booleanGets if aworldof this type is generated with a ceiling at some pre-determined y value composed ofBlockTypes.BEDROCK.default booleanhasRaids()Gets ifplayerswho have thePotionEffectTypes.BAD_OMENeffect could cause aRaidwhile existing in aworldof this type.default booleandefault intheight()Gets the total height in which blocks can exist within a world of this type.Gets the tag for blocks that burn indefinitely in a world of this type.default intGets the maximum height that teleportation logic performed viaItemTypes.CHORUS_FRUITorportal typesmay use to determine the exitlocationof the teleport or the generation of a portal itself.default booleannatural()Gets if the world type is considered natural.default booleanGets if, whenFalse, aPiglinwill transform into aZombifiedPiglin, over time, while existing in aworldof this type.default booleanGets ifplayerscan charge and useBlockTypes.RESPAWN_ANCHORwhile existing in aworldof this type.default booleandefault intReturns the light level needed to block monster spawning.Returns the light level range needed to block monster spawning.Methods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
effect
- Returns:
- The effect
-
scorching
default boolean scorching()Gets ifBlockTypes.WATERwill evaporate orBlockTypes.WET_SPONGEwill become aBlockTypes.SPONGE. AdditionallyFluidTypes.FLOWING_LAVAwill spread faster and thinner.- Returns:
- True if scorching, false if not
-
natural
default boolean natural()Gets if the world type is considered natural.Natural worlds allow sleeping in beds and setting the respawn point,
BlockTypes.NETHER_PORTALportals to spawnZombifiedPiglinandItemTypes.COMPASSto work- Returns:
- True if natural, false if not
-
coordinateMultiplier
default double coordinateMultiplier()Gets the coordinate scale applied to the coordinates of aplayertraveling in aworldof this type.Best seen when transferring that player from one world to another (as the player's coordinates will adjust to the scale of the destination world's).
- Returns:
- The scale
-
hasSkylight
-
hasCeiling
default boolean hasCeiling()Gets if aworldof this type is generated with a ceiling at some pre-determined y value composed ofBlockTypes.BEDROCK. Most notable usage of this is for thetype.In Vanilla, used in weather, map items, and respawning mechanics
- Returns:
- True if a ceiling is present, false if not
-
ambientLighting
default float ambientLighting()Gets the amount of lighting a client will play as an effect while traversing aworldof this type.In Vanilla, the value will be between
0.0and1.0- Returns:
- The lighting value
-
fixedTime
- Returns:
- If present, a fixed day time. Otherwise, free flowing time
-
piglinSafe
default boolean piglinSafe()Gets if, whenFalse, aPiglinwill transform into aZombifiedPiglin, over time, while existing in aworldof this type.- Returns:
- True if piglin are safe, false if they will zombify
-
bedsUsable
-
respawnAnchorsUsable
default boolean respawnAnchorsUsable()Gets ifplayerscan charge and useBlockTypes.RESPAWN_ANCHORwhile existing in aworldof this type.- Returns:
- True if respawn anchors are usable, false if not
-
hasRaids
default boolean hasRaids()Gets ifplayerswho have thePotionEffectTypes.BAD_OMENeffect could cause aRaidwhile existing in aworldof this type.- Returns:
- True if bad omens could case a raid, false if not
-
floor
default int floor()Gets the minimumYvalue that blocks can exist within a world of this type.In vanilla this is a multiple of 16 between -2032 and 2016
- Returns:
- The minimum height
-
height
-
logicalHeight
default int logicalHeight()Gets the maximum height that teleportation logic performed viaItemTypes.CHORUS_FRUITorportal typesmay use to determine the exitlocationof the teleport or the generation of a portal itself.- Returns:
- The logical height
-
infiniburn
-
createDragonFight
-
spawnLightLimit
default int spawnLightLimit()Returns the light level needed to block monster spawning.- Returns:
- spawn light limit
-
spawnLightRange
-