Package btw
Class BTWMod
java.lang.Object
api.BTWAddon
btw.BTWMod
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic com.google.gson.Gsonstatic booleanstatic booleanstatic booleanstatic BTWModstatic final booleanstatic booleanstatic doublestatic booleanstatic intstatic intstatic floatstatic Stringstatic Stringstatic final Potionstatic final Potionstatic final Potionstatic booleanstatic intstatic booleanFields inherited from class api.BTWAddon
addonConfig, addonCustomPacketChannelVersionCheck, addonCustomPacketChannelVersionCheckAck, addonName, dependants, hasBeenInitialized, isRequiredClientAndServer, modID, parentMod, shouldVersionCheck, versionString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voiddebugChatOutput(String string) static voiddebugWarning(String string) voidhandleConfigProperties(AddonConfig config) Where the addon should handle the values read from config files This is called after Initialize() is called, and every time the config is reloaded withvoidThe main method to initialize mod data.voidinitializeDifficultyClient(Difficulty difficulty) voidinitializeDifficultyCommon(Difficulty difficulty) voidinitializeDifficultyServer(Difficulty difficulty) static booleanisHardcoreBuoyEnabled(World world) static booleanstatic booleanvoidvoidDo anything here that needs to be done after all other mods have initializedvoidDo anything here that needs to be done before any other mods have initializedvoidregisterConfigProperties(AddonConfig config) Do any initial config registration here.static voidserverOpenCustomInterface(EntityPlayerMP player, Container container, int containerID) voidserverPlayerConnectionInitialized(NetServerHandler serverHandler, EntityPlayerMP player) Called when a player joins the worldMethods inherited from class api.BTWAddon
addResourcePackDomain, clientCustomPacketReceived, clientPlayCustomAuxFX, decorateWorld, getAwaitingLoginAck, getModID, getName, getVersionString, handleAckCheck, incrementTicksSinceAckRequested, interceptCustomClientPacket, postSetup, registerAddonCommand, registerAddonCommandClientOnly, registerAddonCommandServerOnly, registerPacketHandler, sendDifficultyToClient, sendVersionCheckToClient, serverAckPacketReceived, serverCustomPacketReceived, setup_legacy, spawnCustomParticle, versionCheckPacketReceived
-
Field Details
-
instance
-
globalBtwGson
public static com.google.gson.Gson globalBtwGson -
IS_RELEASE
public static final boolean IS_RELEASE- See Also:
-
disableMinecartChanges
public static boolean disableMinecartChanges -
localEnableHardcoreBuoy
public static boolean localEnableHardcoreBuoy -
serverEnableHardcoreBuoy
public static boolean serverEnableHardcoreBuoy -
localHardcorePlayerNamesLevel
public static int localHardcorePlayerNamesLevel -
serverHardcorePlayerNamesLevel
public static int serverHardcorePlayerNamesLevel -
disableEndText
public static boolean disableEndText -
disableGearBoxPowerDrain
public static boolean disableGearBoxPowerDrain -
nauseaStrength
public static float nauseaStrength -
increaseGhastSpawns
public static boolean increaseGhastSpawns -
initialSpawnIsHardcore
public static boolean initialSpawnIsHardcore -
alwaysSpawnTogether
public static boolean alwaysSpawnTogether -
maxPlayersPerHardcoreSpawnLocation
public static int maxPlayersPerHardcoreSpawnLocation -
increaseLargeBiomeHCS
public static boolean increaseLargeBiomeHCS -
enableSnowRework
public static boolean enableSnowRework -
allowHardcore
public static boolean allowHardcore -
useHardcoreHearts
public static boolean useHardcoreHearts -
enableLocalChat
public static boolean enableLocalChat -
localChatRange
public static double localChatRange -
allowPlaceWhileJumping
public static boolean allowPlaceWhileJumping -
playerSkinURL
-
playerCloakURL
-
isLensBeamBeingRemoved
public static boolean isLensBeamBeingRemoved -
potionFortune
-
potionLooting
-
potionTrueSight
-
-
Constructor Details
-
BTWMod
public BTWMod()
-
-
Method Details
-
preInitialize
public void preInitialize()Description copied from class:BTWAddonDo anything here that needs to be done before any other mods have initialized- Overrides:
preInitializein classBTWAddon
-
initialize
public void initialize()Description copied from class:BTWAddonThe main method to initialize mod data. Mod initialize order cannot be guaranteed, except that Better than Wolves loads first Anything that depends on other mods having loaded should be done in postInitialize()- Specified by:
initializein classBTWAddon
-
postInitialize
public void postInitialize()Description copied from class:BTWAddonDo anything here that needs to be done after all other mods have initialized- Overrides:
postInitializein classBTWAddon
-
modInstallationIntegrityTest
public void modInstallationIntegrityTest() -
isHardcoreBuoyEnabled
-
isHardcorePlayerNamesEnabled
-
areHardcorePlayerNamesObstructed
-
registerConfigProperties
Description copied from class:BTWAddonDo any initial config registration here. Use register___ to register new properties. To reference the values later, useBTWAddon.addonConfig's get_____ methods.- Overrides:
registerConfigPropertiesin classBTWAddon
-
handleConfigProperties
Description copied from class:BTWAddonWhere the addon should handle the values read from config files This is called after Initialize() is called, and every time the config is reloaded with- Overrides:
handleConfigPropertiesin classBTWAddon- Parameters:
config- Key-value pair for each property which has been registered
-
serverPlayerConnectionInitialized
public void serverPlayerConnectionInitialized(NetServerHandler serverHandler, EntityPlayerMP player) Description copied from class:BTWAddonCalled when a player joins the world- Overrides:
serverPlayerConnectionInitializedin classBTWAddon
-
initializeDifficultyCommon
- Overrides:
initializeDifficultyCommonin classBTWAddon
-
initializeDifficultyServer
- Overrides:
initializeDifficultyServerin classBTWAddon
-
initializeDifficultyClient
- Overrides:
initializeDifficultyClientin classBTWAddon
-
serverOpenCustomInterface
public static void serverOpenCustomInterface(EntityPlayerMP player, Container container, int containerID) -
isSinglePlayerNonLan
public static boolean isSinglePlayerNonLan() -
debugChatOutput
-
debugWarning
-