public abstract class MixinWorldInfo extends Object implements org.spongepowered.api.world.storage.WorldProperties, IMixinWorldInfo
Constructor and Description |
---|
MixinWorldInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
areCommandsAllowed() |
boolean |
doesKeepSpawnLoaded() |
org.spongepowered.api.data.DataContainer |
getAdditionalProperties() |
org.spongepowered.api.world.difficulty.Difficulty |
getDifficulty() |
int |
getDimensionId() |
org.spongepowered.api.world.DimensionType |
getDimensionType() |
org.spongepowered.api.entity.living.player.gamemode.GameMode |
getGameMode() |
Optional<String> |
getGameRule(String gameRule) |
Map<String,String> |
getGameRules() |
Collection<org.spongepowered.api.world.gen.WorldGeneratorModifier> |
getGeneratorModifiers() |
org.spongepowered.api.data.DataContainer |
getGeneratorSettings() |
org.spongepowered.api.world.GeneratorType |
getGeneratorType() |
int |
getIndexForUniqueId(UUID uuid) |
boolean |
getIsMod() |
abstract net.minecraft.nbt.NBTTagCompound |
getNBTTagCompound() |
Optional<org.spongepowered.api.data.DataView> |
getPropertySection(org.spongepowered.api.data.DataQuery path) |
com.flowpowered.math.vector.Vector3i |
getSpawnPosition() |
net.minecraft.nbt.NBTTagCompound |
getSpongeNbt() |
net.minecraft.nbt.NBTTagCompound |
getSpongeRootLevelNbt() |
int |
getThunderTime() |
long |
getTotalTime() |
UUID |
getUniqueId() |
Optional<UUID> |
getUniqueIdForIndex(int index) |
com.flowpowered.math.vector.Vector3d |
getWorldBorderCenter() |
double |
getWorldBorderDamageAmount() |
double |
getWorldBorderDamageThreshold() |
double |
getWorldBorderDiameter() |
double |
getWorldBorderTargetDiameter() |
long |
getWorldBorderTimeRemaining() |
int |
getWorldBorderWarningDistance() |
int |
getWorldBorderWarningTime() |
boolean |
isEnabled() |
boolean |
isHardcore() |
boolean |
isInitialized() |
boolean |
loadOnStartup() |
void |
onConstruction(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
onConstruction(net.minecraft.nbt.NBTTagCompound nbt,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
onConstruction(net.minecraft.world.WorldSettings settings,
String name,
org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) |
void |
readSpongeNbt(net.minecraft.nbt.NBTTagCompound nbt) |
void |
setCommandsAllowed(boolean state) |
void |
setDifficulty(org.spongepowered.api.world.difficulty.Difficulty difficulty) |
void |
setDimensionId(int id) |
void |
setDimensionType(org.spongepowered.api.world.DimensionType type) |
void |
setEnabled(boolean state) |
void |
setGameMode(org.spongepowered.api.entity.living.player.gamemode.GameMode gamemode) |
void |
setGameRule(String gameRule,
String value) |
void |
setGeneratorModifiers(Collection<org.spongepowered.api.world.gen.WorldGeneratorModifier> modifiers) |
void |
setGeneratorType(org.spongepowered.api.world.GeneratorType type) |
void |
setHardcore(boolean state) |
void |
setIsMod(boolean flag) |
void |
setKeepSpawnLoaded(boolean state) |
void |
setLoadOnStartup(boolean state) |
void |
setMapFeaturesEnabled(boolean state) |
void |
setPropertySection(org.spongepowered.api.data.DataQuery path,
org.spongepowered.api.data.DataView data) |
void |
setRaining(boolean state) |
void |
setSeed(long seed) |
void |
setSpawnPosition(com.flowpowered.math.vector.Vector3i position) |
void |
setSpongeRootLevelNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
setThunderTime(int time) |
void |
setUUID(UUID uuid) |
void |
setWorldBorderCenter(double x,
double z) |
void |
setWorldBorderDamageAmount(double damage) |
void |
setWorldBorderDamageThreshold(double distance) |
void |
setWorldBorderDiameter(double diameter) |
void |
setWorldBorderTargetDiameter(double diameter) |
void |
setWorldBorderTimeRemaining(long time) |
void |
setWorldBorderWarningDistance(int distance) |
void |
setWorldBorderWarningTime(int time) |
void |
setWorldName(String name) |
void |
setWorldTime(long time) |
org.spongepowered.api.data.DataContainer |
toContainer() |
boolean |
usesMapFeatures() |
int |
worldproperties$getRainTime() |
long |
worldproperties$getSeed() |
String |
worldproperties$getWorldName() |
long |
worldproperties$getWorldTime() |
boolean |
worldproperties$isRaining() |
boolean |
worldproperties$isThundering() |
void |
worldproperties$setRainTime(int time) |
void |
worldproperties$setThundering(boolean state) |
public abstract net.minecraft.nbt.NBTTagCompound getNBTTagCompound()
public void onConstruction(org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public void onConstruction(net.minecraft.world.WorldSettings settings, String name, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public void onConstruction(net.minecraft.nbt.NBTTagCompound nbt, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
public com.flowpowered.math.vector.Vector3i getSpawnPosition()
getSpawnPosition
in interface org.spongepowered.api.world.storage.WorldProperties
public void setSpawnPosition(com.flowpowered.math.vector.Vector3i position)
setSpawnPosition
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.world.GeneratorType getGeneratorType()
getGeneratorType
in interface org.spongepowered.api.world.storage.WorldProperties
public void setGeneratorType(org.spongepowered.api.world.GeneratorType type)
setGeneratorType
in interface org.spongepowered.api.world.storage.WorldProperties
public long worldproperties$getSeed()
public void setSeed(long seed)
setSeed
in interface IMixinWorldInfo
public long getTotalTime()
getTotalTime
in interface org.spongepowered.api.world.storage.WorldProperties
public long worldproperties$getWorldTime()
public void setWorldTime(long time)
setWorldTime
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.world.DimensionType getDimensionType()
getDimensionType
in interface org.spongepowered.api.world.storage.WorldProperties
public void setDimensionType(org.spongepowered.api.world.DimensionType type)
setDimensionType
in interface IMixinWorldInfo
public String worldproperties$getWorldName()
public void setWorldName(String name)
setWorldName
in interface IMixinWorldInfo
public boolean worldproperties$isRaining()
public void setRaining(boolean state)
setRaining
in interface org.spongepowered.api.world.storage.WorldProperties
public int worldproperties$getRainTime()
public void worldproperties$setRainTime(int time)
public boolean worldproperties$isThundering()
public void worldproperties$setThundering(boolean state)
public int getThunderTime()
getThunderTime
in interface org.spongepowered.api.world.storage.WorldProperties
public void setThunderTime(int time)
setThunderTime
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.entity.living.player.gamemode.GameMode getGameMode()
getGameMode
in interface org.spongepowered.api.world.storage.WorldProperties
public void setGameMode(org.spongepowered.api.entity.living.player.gamemode.GameMode gamemode)
setGameMode
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean usesMapFeatures()
usesMapFeatures
in interface org.spongepowered.api.world.storage.WorldProperties
public void setMapFeaturesEnabled(boolean state)
setMapFeaturesEnabled
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean isHardcore()
isHardcore
in interface org.spongepowered.api.world.storage.WorldProperties
public void setHardcore(boolean state)
setHardcore
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean areCommandsAllowed()
areCommandsAllowed
in interface org.spongepowered.api.world.storage.WorldProperties
public void setCommandsAllowed(boolean state)
setCommandsAllowed
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean isInitialized()
isInitialized
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.world.difficulty.Difficulty getDifficulty()
getDifficulty
in interface org.spongepowered.api.world.storage.WorldProperties
public void setDifficulty(org.spongepowered.api.world.difficulty.Difficulty difficulty)
setDifficulty
in interface org.spongepowered.api.world.storage.WorldProperties
public com.flowpowered.math.vector.Vector3d getWorldBorderCenter()
getWorldBorderCenter
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderCenter(double x, double z)
setWorldBorderCenter
in interface org.spongepowered.api.world.storage.WorldProperties
public double getWorldBorderDiameter()
getWorldBorderDiameter
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderDiameter(double diameter)
setWorldBorderDiameter
in interface org.spongepowered.api.world.storage.WorldProperties
public double getWorldBorderTargetDiameter()
getWorldBorderTargetDiameter
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderTargetDiameter(double diameter)
setWorldBorderTargetDiameter
in interface org.spongepowered.api.world.storage.WorldProperties
public double getWorldBorderDamageThreshold()
getWorldBorderDamageThreshold
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderDamageThreshold(double distance)
setWorldBorderDamageThreshold
in interface org.spongepowered.api.world.storage.WorldProperties
public double getWorldBorderDamageAmount()
getWorldBorderDamageAmount
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderDamageAmount(double damage)
setWorldBorderDamageAmount
in interface org.spongepowered.api.world.storage.WorldProperties
public int getWorldBorderWarningTime()
getWorldBorderWarningTime
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderWarningTime(int time)
setWorldBorderWarningTime
in interface org.spongepowered.api.world.storage.WorldProperties
public int getWorldBorderWarningDistance()
getWorldBorderWarningDistance
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderWarningDistance(int distance)
setWorldBorderWarningDistance
in interface org.spongepowered.api.world.storage.WorldProperties
public long getWorldBorderTimeRemaining()
getWorldBorderTimeRemaining
in interface org.spongepowered.api.world.storage.WorldProperties
public void setWorldBorderTimeRemaining(long time)
setWorldBorderTimeRemaining
in interface org.spongepowered.api.world.storage.WorldProperties
public Optional<String> getGameRule(String gameRule)
getGameRule
in interface org.spongepowered.api.world.storage.WorldProperties
public Map<String,String> getGameRules()
getGameRules
in interface org.spongepowered.api.world.storage.WorldProperties
public void setGameRule(String gameRule, String value)
setGameRule
in interface org.spongepowered.api.world.storage.WorldProperties
public void setDimensionId(int id)
setDimensionId
in interface IMixinWorldInfo
public int getDimensionId()
getDimensionId
in interface IMixinWorldInfo
public UUID getUniqueId()
getUniqueId
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.data.DataContainer toContainer()
toContainer
in interface org.spongepowered.api.data.DataSerializable
public boolean isEnabled()
isEnabled
in interface org.spongepowered.api.world.storage.WorldProperties
public void setEnabled(boolean state)
setEnabled
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean loadOnStartup()
loadOnStartup
in interface org.spongepowered.api.world.storage.WorldProperties
public void setLoadOnStartup(boolean state)
setLoadOnStartup
in interface org.spongepowered.api.world.storage.WorldProperties
public boolean doesKeepSpawnLoaded()
doesKeepSpawnLoaded
in interface org.spongepowered.api.world.storage.WorldProperties
public void setKeepSpawnLoaded(boolean state)
setKeepSpawnLoaded
in interface org.spongepowered.api.world.storage.WorldProperties
public void setUUID(UUID uuid)
setUUID
in interface IMixinWorldInfo
public void setIsMod(boolean flag)
setIsMod
in interface IMixinWorldInfo
public boolean getIsMod()
getIsMod
in interface IMixinWorldInfo
public Collection<org.spongepowered.api.world.gen.WorldGeneratorModifier> getGeneratorModifiers()
getGeneratorModifiers
in interface org.spongepowered.api.world.storage.WorldProperties
public void setGeneratorModifiers(Collection<org.spongepowered.api.world.gen.WorldGeneratorModifier> modifiers)
setGeneratorModifiers
in interface org.spongepowered.api.world.storage.WorldProperties
public org.spongepowered.api.data.DataContainer getGeneratorSettings()
getGeneratorSettings
in interface org.spongepowered.api.world.storage.WorldProperties
public Optional<org.spongepowered.api.data.DataView> getPropertySection(org.spongepowered.api.data.DataQuery path)
getPropertySection
in interface org.spongepowered.api.world.storage.WorldProperties
public void setPropertySection(org.spongepowered.api.data.DataQuery path, org.spongepowered.api.data.DataView data)
setPropertySection
in interface org.spongepowered.api.world.storage.WorldProperties
public int getIndexForUniqueId(UUID uuid)
getIndexForUniqueId
in interface IMixinWorldInfo
public Optional<UUID> getUniqueIdForIndex(int index)
getUniqueIdForIndex
in interface IMixinWorldInfo
public net.minecraft.nbt.NBTTagCompound getSpongeRootLevelNbt()
getSpongeRootLevelNbt
in interface IMixinWorldInfo
public net.minecraft.nbt.NBTTagCompound getSpongeNbt()
getSpongeNbt
in interface IMixinWorldInfo
public void setSpongeRootLevelNBT(net.minecraft.nbt.NBTTagCompound nbt)
setSpongeRootLevelNBT
in interface IMixinWorldInfo
public void readSpongeNbt(net.minecraft.nbt.NBTTagCompound nbt)
readSpongeNbt
in interface IMixinWorldInfo
public org.spongepowered.api.data.DataContainer getAdditionalProperties()
getAdditionalProperties
in interface org.spongepowered.api.world.storage.WorldProperties