Skip navigation links
A C D E F G H I L N O P R S T U W 

A

applySatisfiedEffects - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
applyUnsatisfiedEffects - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
attachCapabilities(AttachCapabilitiesEvent<Entity>) - Method in class net.darkhax.cravings.handler.CravingDataHandler
 

C

clonePlayer(PlayerEvent.Clone) - Method in class net.darkhax.cravings.handler.CravingDataHandler
This event is used to make player data persist after death.
CommandCravingInfo - Class in net.darkhax.cravings.command
 
CommandCravingInfo() - Constructor for class net.darkhax.cravings.command.CommandCravingInfo
 
CommandCravingTree - Class in net.darkhax.cravings.command
 
CommandCravingTree() - Constructor for class net.darkhax.cravings.command.CommandCravingTree
 
CommandFoods - Class in net.darkhax.cravings.command
 
CommandFoods() - Constructor for class net.darkhax.cravings.command.CommandFoods
 
CommandSetCraving - Class in net.darkhax.cravings.command
 
CommandSetCraving() - Constructor for class net.darkhax.cravings.command.CommandSetCraving
 
config - Static variable in class net.darkhax.cravings.Cravings
Configuration instance.
config - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
ConfigurationHandler - Class in net.darkhax.cravings.handler
 
ConfigurationHandler(File) - Constructor for class net.darkhax.cravings.handler.ConfigurationHandler
 
CRAVING_REGISTRY - Static variable in class net.darkhax.cravings.Cravings
The weighted registry for cravings.
cravingChance - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
CravingDataHandler - Class in net.darkhax.cravings.handler
 
CravingDataHandler() - Constructor for class net.darkhax.cravings.handler.CravingDataHandler
 
CravingDataHandler.Default - Class in net.darkhax.cravings.handler
Default implementation of the custom data.
CravingDataHandler.ICustomData - Interface in net.darkhax.cravings.handler
Interface for holding various getter and setter methods.
CravingDataHandler.Provider - Class in net.darkhax.cravings.handler
Handles all the checks and delegate methods for the capability.
CravingDataHandler.Storage - Class in net.darkhax.cravings.handler
Handles reand/write of custom data.
CravingDefault - Class in net.darkhax.cravings.craving
This default implementation of ICraving provides default logic for handling potion effect craving rewards and punishments.
CravingDefault() - Constructor for class net.darkhax.cravings.craving.CravingDefault
 
CravingRandomFood - Class in net.darkhax.cravings.craving
This craving is used as the default implementation.
CravingRandomFood() - Constructor for class net.darkhax.cravings.craving.CravingRandomFood
 
Cravings - Class in net.darkhax.cravings
 
Cravings() - Constructor for class net.darkhax.cravings.Cravings
 
CUSTOM_DATA - Static variable in class net.darkhax.cravings.handler.CravingDataHandler
 

D

Default() - Constructor for class net.darkhax.cravings.handler.CravingDataHandler.Default
 
deserializeNBT(NBTTagCompound) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Provider
 

E

errors - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
execute(MinecraftServer, ICommandSender, String[]) - Method in class net.darkhax.cravings.command.CommandCravingInfo
 
execute(MinecraftServer, ICommandSender, String[]) - Method in class net.darkhax.cravings.command.CommandFoods
 
execute(MinecraftServer, ICommandSender, String[]) - Method in class net.darkhax.cravings.command.CommandSetCraving
 

F

FOODS - Static variable in class net.darkhax.cravings.craving.CravingRandomFood
A list of all the food items that were found.

G

getCapability(Capability<T>, EnumFacing) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Provider
 
getCravedItem() - Method in class net.darkhax.cravings.craving.CravingRandomFood
 
getCravedItem() - Method in interface net.darkhax.cravings.craving.ICraving
Gets the food ItemStack being craved.
getCravedItem() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
getCravedItem() - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
getCraving() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
getCraving() - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
getName() - Method in class net.darkhax.cravings.command.CommandCravingInfo
 
getName() - Method in class net.darkhax.cravings.command.CommandCravingTree
 
getName() - Method in class net.darkhax.cravings.command.CommandFoods
 
getName() - Method in class net.darkhax.cravings.command.CommandSetCraving
 
getRequiredPermissionLevel() - Method in class net.darkhax.cravings.command.CommandCravingInfo
 
getRequiredPermissionLevel() - Method in class net.darkhax.cravings.command.CommandCravingTree
 
getRequiredPermissionLevel() - Method in class net.darkhax.cravings.command.CommandFoods
 
getRequiredPermissionLevel() - Method in class net.darkhax.cravings.command.CommandSetCraving
 
getStageData(EntityPlayer) - Static method in class net.darkhax.cravings.handler.CravingDataHandler
 
getTimeToNextAttempt() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
getTimeToNextAttempt() - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
getTimeToSatisfy() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
getTimeToSatisfy() - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
getUsage(ICommandSender) - Method in class net.darkhax.cravings.command.CommandCravingInfo
 
getUsage(ICommandSender) - Method in class net.darkhax.cravings.command.CommandCravingTree
 
getUsage(ICommandSender) - Method in class net.darkhax.cravings.command.CommandFoods
 
getUsage(ICommandSender) - Method in class net.darkhax.cravings.command.CommandSetCraving
 

H

handleMessage(MessageContext) - Method in class net.darkhax.cravings.network.PacketRequestClientSync
 
handleMessage(MessageContext) - Method in class net.darkhax.cravings.network.PacketSyncClient
 
hasCapability(Capability<?>, EnumFacing) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Provider
 

I

ICraving - Interface in net.darkhax.cravings.craving
This interface is used to define a craving.
init(FMLInitializationEvent) - Method in class net.darkhax.cravings.Cravings
 
init() - Static method in class net.darkhax.cravings.handler.CravingDataHandler
 
isUsernameIndex(String[], int) - Method in class net.darkhax.cravings.command.CommandSetCraving
 

L

LOG - Static variable in class net.darkhax.cravings.Cravings
Logger for the mod.

N

net.darkhax.cravings - package net.darkhax.cravings
 
net.darkhax.cravings.command - package net.darkhax.cravings.command
 
net.darkhax.cravings.craving - package net.darkhax.cravings.craving
 
net.darkhax.cravings.handler - package net.darkhax.cravings.handler
 
net.darkhax.cravings.network - package net.darkhax.cravings.network
 
NETWORK - Static variable in class net.darkhax.cravings.Cravings
The network handler for cravings.

O

onCravingSatisfied(EntityPlayer) - Method in class net.darkhax.cravings.craving.CravingDefault
 
onCravingSatisfied(EntityPlayer) - Method in interface net.darkhax.cravings.craving.ICraving
Called when the player manages to satisfy their craving.
onCravingUnsatisifed(EntityPlayer) - Method in class net.darkhax.cravings.craving.CravingDefault
 
onCravingUnsatisifed(EntityPlayer) - Method in interface net.darkhax.cravings.craving.ICraving
Called when the player fails to satisfy their craving.
onEntityJoinWorld(EntityJoinWorldEvent) - Method in class net.darkhax.cravings.handler.CravingDataHandler
This event is used to sync stage data initially.
onEntityStartUsing(LivingEntityUseItemEvent.Start) - Method in class net.darkhax.cravings.handler.SatisfactionHandler
 
onEntityStopUsing(LivingEntityUseItemEvent.Stop) - Method in class net.darkhax.cravings.handler.SatisfactionHandler
 
onFingerprintViolation(FMLFingerprintViolationEvent) - Method in class net.darkhax.cravings.Cravings
 
onItemUsed(LivingEntityUseItemEvent.Finish) - Method in class net.darkhax.cravings.handler.SatisfactionHandler
 
onLivingTick(TickEvent.PlayerTickEvent) - Method in class net.darkhax.cravings.handler.SatisfactionHandler
 
onPlayerEatItem(EntityPlayer, ItemStack) - Static method in class net.darkhax.cravings.handler.SatisfactionHandler
 

P

PacketRequestClientSync - Class in net.darkhax.cravings.network
A packet to request stages be synced to the client.
PacketRequestClientSync() - Constructor for class net.darkhax.cravings.network.PacketRequestClientSync
 
PacketSyncClient - Class in net.darkhax.cravings.network
This packet is used to sync all of the stages from the server to the client.
PacketSyncClient() - Constructor for class net.darkhax.cravings.network.PacketSyncClient
 
PacketSyncClient(CravingDataHandler.ICustomData) - Constructor for class net.darkhax.cravings.network.PacketSyncClient
 
preInit(FMLPreInitializationEvent) - Method in class net.darkhax.cravings.Cravings
 
Provider() - Constructor for class net.darkhax.cravings.handler.CravingDataHandler.Provider
 

R

readNBT(Capability<CravingDataHandler.ICustomData>, CravingDataHandler.ICustomData, EnumFacing, NBTBase) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Storage
 
resetCravings() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
resetCravings() - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 

S

SatisfactionHandler - Class in net.darkhax.cravings.handler
 
SatisfactionHandler() - Constructor for class net.darkhax.cravings.handler.SatisfactionHandler
 
satisfiedEffects - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
serializeNBT() - Method in class net.darkhax.cravings.handler.CravingDataHandler.Provider
 
setCravedItem(ItemStack) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
setCravedItem(ItemStack) - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
setCraving(ICraving) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
setCraving(ICraving) - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
setCravingData(EntityPlayer, ICraving, int) - Static method in class net.darkhax.cravings.handler.CravingDataHandler
 
setTimeToNextAttempt(int) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
setTimeToNextAttempt(int) - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
setTimeToSatisfy(int) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Default
 
setTimeToSatisfy(int) - Method in interface net.darkhax.cravings.handler.CravingDataHandler.ICustomData
 
Storage() - Constructor for class net.darkhax.cravings.handler.CravingDataHandler.Storage
 

T

ticksTillCravingAttempt - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 
ticksToTime(int) - Static method in class net.darkhax.cravings.command.CommandCravingInfo
 
timeToSatisfy - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 

U

unsatisfiedEffects - Static variable in class net.darkhax.cravings.handler.ConfigurationHandler
 

W

writeNBT(Capability<CravingDataHandler.ICustomData>, CravingDataHandler.ICustomData, EnumFacing) - Method in class net.darkhax.cravings.handler.CravingDataHandler.Storage
 
A C D E F G H I L N O P R S T U W 
Skip navigation links