Package com.viaversion.viarewind
Class ViaRewindConfig
java.lang.Object
com.viaversion.viaversion.util.ConfigSection
com.viaversion.viaversion.util.Config
com.viaversion.viarewind.ViaRewindConfig
- All Implemented Interfaces:
ViaRewindConfig,com.viaversion.viaversion.api.configuration.Config
public class ViaRewindConfig
extends com.viaversion.viaversion.util.Config
implements ViaRewindConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.viaversion.viarewind.api.ViaRewindConfig
ViaRewindConfig.CooldownIndicator -
Field Summary
Fields inherited from class com.viaversion.viaversion.util.Config
loggerFields inherited from class com.viaversion.viaversion.util.ConfigSection
path, root, values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAlways shows the original mob's name instead of only when hovering over them with the cursor.booleanIf enabled, 1.8 players on 1.9+ servers will also experience the levitation effect by sending velocity packets.Specifies how 1.8.x clients should see the cooldown indicator You can choose between TITLE, ACTION_BAR, BOSS_BAR and DISABLED ONLY DISABLE IF YOU HAVE 1.9 COOLDOWN DISABLED ON YOUR SERVER 1.8 PLAYERS MAY ASK WHY PVP IS NOT WORKING OTHERWISEintMax amount of pages for written books before a client gets kickedintMax amount of characters in the json (!) string of a book page before a client gets kickedAllows to define the offhand commandThe particle to show the world border for the 1.8+ world border for 1.7.x clientsprotected voidhandleConfig(Map<String, Object> map) booleanIf enabled, 1.8 players will handle the player combat packet added in 1.9 by showing the custom death message above the hotbar.booleanWhether to emulate the 1.8+ world border for 1.7.x clientsbooleanIf enabled, 1.8 players on 1.9+ servers can use /offhand to switch items between their main hand and offhand.booleanReplaces Adventure mode with Survival mode for 1.7.x clients Enable this option if your server is using the 'CanDestroy' or 'CanPlaceOn' flags on itemsbooleanWhether 1.9 particles should be replaced by similar ones in 1.8 and lowervoidreload()Methods inherited from class com.viaversion.viaversion.util.Config
getSectionsWithModifiableKeys, loadConfig, loadConfig, logger, originalRootSection, root, save, save, saveMethods inherited from class com.viaversion.viaversion.util.ConfigSection
contains, get, get, getBoolean, getDouble, getInt, getIntegerList, getListSafe, getSection, getSerializedComponent, getString, getStringList, getValues, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.configuration.Config
getValues, save, set
-
Constructor Details
-
ViaRewindConfig
-
-
Method Details
-
reload
public void reload()- Specified by:
reloadin interfacecom.viaversion.viaversion.api.configuration.Config- Overrides:
reloadin classcom.viaversion.viaversion.util.Config
-
getCooldownIndicator
Description copied from interface:ViaRewindConfigSpecifies how 1.8.x clients should see the cooldown indicator You can choose between TITLE, ACTION_BAR, BOSS_BAR and DISABLED ONLY DISABLE IF YOU HAVE 1.9 COOLDOWN DISABLED ON YOUR SERVER 1.8 PLAYERS MAY ASK WHY PVP IS NOT WORKING OTHERWISE- Specified by:
getCooldownIndicatorin interfaceViaRewindConfig- Returns:
- the cooldown indicator
-
isReplaceAdventureMode
public boolean isReplaceAdventureMode()Description copied from interface:ViaRewindConfigReplaces Adventure mode with Survival mode for 1.7.x clients Enable this option if your server is using the 'CanDestroy' or 'CanPlaceOn' flags on items- Specified by:
isReplaceAdventureModein interfaceViaRewindConfig- Returns:
- true if enabled
-
isReplaceParticles
public boolean isReplaceParticles()Description copied from interface:ViaRewindConfigWhether 1.9 particles should be replaced by similar ones in 1.8 and lower- Specified by:
isReplaceParticlesin interfaceViaRewindConfig- Returns:
- true if enabled
-
getMaxBookPages
public int getMaxBookPages()Description copied from interface:ViaRewindConfigMax amount of pages for written books before a client gets kicked- Specified by:
getMaxBookPagesin interfaceViaRewindConfig- Returns:
- the max amount of pages
-
getMaxBookPageSize
public int getMaxBookPageSize()Description copied from interface:ViaRewindConfigMax amount of characters in the json (!) string of a book page before a client gets kicked- Specified by:
getMaxBookPageSizein interfaceViaRewindConfig- Returns:
- the max amount of characters
-
isEmulateWorldBorder
public boolean isEmulateWorldBorder()Description copied from interface:ViaRewindConfigWhether to emulate the 1.8+ world border for 1.7.x clients- Specified by:
isEmulateWorldBorderin interfaceViaRewindConfig- Returns:
- true if enabled
-
alwaysShowOriginalMobName
public boolean alwaysShowOriginalMobName()Description copied from interface:ViaRewindConfigAlways shows the original mob's name instead of only when hovering over them with the cursor.- Specified by:
alwaysShowOriginalMobNamein interfaceViaRewindConfig- Returns:
- true if enabled
-
getWorldBorderParticle
Description copied from interface:ViaRewindConfigThe particle to show the world border for the 1.8+ world border for 1.7.x clients- Specified by:
getWorldBorderParticlein interfaceViaRewindConfig- Returns:
- the particle name
-
isEnableOffhand
public boolean isEnableOffhand()Description copied from interface:ViaRewindConfigIf enabled, 1.8 players on 1.9+ servers can use /offhand to switch items between their main hand and offhand.- Specified by:
isEnableOffhandin interfaceViaRewindConfig- Returns:
- true if enabled
-
getOffhandCommand
Description copied from interface:ViaRewindConfigAllows to define the offhand command- Specified by:
getOffhandCommandin interfaceViaRewindConfig- Returns:
- the offhand command
-
emulateLevitationEffect
public boolean emulateLevitationEffect()Description copied from interface:ViaRewindConfigIf enabled, 1.8 players on 1.9+ servers will also experience the levitation effect by sending velocity packets.- Specified by:
emulateLevitationEffectin interfaceViaRewindConfig- Returns:
- true if enabled
-
handlePlayerCombatPacket
public boolean handlePlayerCombatPacket()Description copied from interface:ViaRewindConfigIf enabled, 1.8 players will handle the player combat packet added in 1.9 by showing the custom death message above the hotbar.- Specified by:
handlePlayerCombatPacketin interfaceViaRewindConfig- Returns:
- true if enabled
-
getDefaultConfigURL
- Overrides:
getDefaultConfigURLin classcom.viaversion.viaversion.util.Config
-
getDefaultConfigInputStream
- Overrides:
getDefaultConfigInputStreamin classcom.viaversion.viaversion.util.Config
-
handleConfig
- Overrides:
handleConfigin classcom.viaversion.viaversion.util.Config
-
getUnsupportedOptions
- Overrides:
getUnsupportedOptionsin classcom.viaversion.viaversion.util.Config
-