Index

A B C D E F G I K L M N O P R S 
All Classes and Interfaces|All Packages|Constant Field Values

A

alwaysFastest - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
alwaysFastest(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Shows the configuration for alwaysFastest.
alwaysFastestToggle(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Sets the configuration for alwaysFastest.
anyMatch(Identifier, String) - Static method in class com.natoboram.switcheroo.util.Identifiers
Check if the given identifier is present in a space-separated string list.

B

blacklist - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
Blacklist() - Constructor for class com.natoboram.switcheroo.config.SwitcherooConfig.Blacklist
 
blacklistBlocks(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Shows the list of blacklisted blocks.
blacklistBlocksAdd(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Add a block to the blacklist.
blacklistBlocksRemove(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Remove a block from the blacklist.
blacklistMobs(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Shows the list of blacklisted mobs.
blacklistMobsAdd(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Add a mob to the blacklist.
blacklistMobsRemove(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Remove a mob from the blacklist.
blockIdentifier() - Static method in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
BlockIdentifier - Class in com.natoboram.switcheroo.command.argument
Argument type for obtaining a block Identifier.
BlockIdentifier() - Constructor for class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
blocks - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig.Blacklist
 
Blocks - Class in com.natoboram.switcheroo.util
 
Blocks() - Constructor for class com.natoboram.switcheroo.util.Blocks
 
BlockSwitch - Class in com.natoboram.switcheroo.event
Execute a switcheroo action when attacking a block.
BlockSwitch(ConfigHolder<SwitcherooConfig>) - Constructor for class com.natoboram.switcheroo.event.BlockSwitch
 

C

com.natoboram.switcheroo - package com.natoboram.switcheroo
 
com.natoboram.switcheroo.command - package com.natoboram.switcheroo.command
 
com.natoboram.switcheroo.command.argument - package com.natoboram.switcheroo.command.argument
 
com.natoboram.switcheroo.config - package com.natoboram.switcheroo.config
 
com.natoboram.switcheroo.event - package com.natoboram.switcheroo.event
 
com.natoboram.switcheroo.util - package com.natoboram.switcheroo.util
 
Commands - Class in com.natoboram.switcheroo.command
 
Commands() - Constructor for class com.natoboram.switcheroo.command.Commands
 
CropSwitch - Class in com.natoboram.switcheroo.event
Execute a switcheroo action when attacking crops.

D

debug - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
disable(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
 

E

enable(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
 
enableCrop - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
enabled - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
entityIdentifier() - Static method in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 
EntityIdentifier - Class in com.natoboram.switcheroo.command.argument
Argument type for obtaining an entity Identifier.
EntityIdentifier() - Constructor for class com.natoboram.switcheroo.command.argument.EntityIdentifier
 
EntitySwitch - Class in com.natoboram.switcheroo.event
Execute a switcheroo action when attacking an entity.
EntitySwitch(ConfigHolder<SwitcherooConfig>) - Constructor for class com.natoboram.switcheroo.event.EntitySwitch
 

F

fortune - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig.Prefer
 

G

getAttackDamage(ItemStack, Entity, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Calculates the attack damage of the current player towards a specific entity using a specific item stack.
getAttackSpeed(ItemStack, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Calculates the attack speed of a specific item stack.
getBlockIdentifier(String, CommandContext<FabricClientCommandSource>) - Method in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
getDps(ItemStack, Entity, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Calculates the damage per seconds a player can deal using specific item stack towards a specific entity.
getEntityIdentifier(CommandContext<FabricClientCommandSource>, String) - Method in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 
getExamples() - Method in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
getExamples() - Method in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 
getMaxAttackDamage(ArrayList<ItemStack>, Entity, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Gets the maximum attack damage the current player can deal to a specific entity using a list of weapons.
getMaxDps(ArrayList<ItemStack>, Entity, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Gets the maximum damage per seconds a player can deal to a specific entity
getMiningSpeedMultiplier(ItemStack, BlockState, World) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Wrapper for ItemStack.getMiningSpeedMultiplier(net.minecraft.block.BlockState) that takes into account efficiency levels.
getModConfigScreenFactory() - Method in class com.natoboram.switcheroo.config.SwitcherooModMenu
 

I

Identifiers - Class in com.natoboram.switcheroo.util
 
Identifiers() - Constructor for class com.natoboram.switcheroo.util.Identifiers
 
interact(PlayerEntity, World, Hand, Entity, EntityHitResult) - Method in class com.natoboram.switcheroo.event.EntitySwitch
 
interact(PlayerEntity, World, Hand, BlockPos, Direction) - Method in class com.natoboram.switcheroo.event.BlockSwitch
 
interact(PlayerEntity, World, Hand, BlockPos, Direction) - Method in class com.natoboram.switcheroo.event.CropSwitch
 
isInList(Block, String[]) - Static method in class com.natoboram.switcheroo.util.Blocks
 
ItemStacks - Class in com.natoboram.switcheroo.util
 
ItemStacks() - Constructor for class com.natoboram.switcheroo.util.ItemStacks
 

K

keepFastestTools(ArrayList<ItemStack>, BlockState, World) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes tools that have a lower mining speed than the fastest tool in the inventory.
keepLowestStacks(ArrayList<ItemStack>) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes items that have a smaller stack size than the lowest stack size.
keepMostAttackDamage(ArrayList<ItemStack>, Entity, Double, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes weapons that deal less damage than the maximum attack damage the player can deal to a specific entity.
keepMostDamagedItems(ArrayList<ItemStack>) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes items that have less durability than the most damaged item.
keepMostDps(ArrayList<ItemStack>, Entity, Double, World, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes weapons that deal less damage per seconds than the maximum damage per seconds the player can deal to a specific entity.
keepSlowestTools(ArrayList<ItemStack>, BlockState, World) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes tools that have a higher mining speed than the slowest tool in the inventory.

L

listSuggestions(CommandContext<S>, SuggestionsBuilder) - Method in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
listSuggestions(CommandContext<S>, SuggestionsBuilder) - Method in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 

M

Main - Class in com.natoboram.switcheroo
 
Main() - Constructor for class com.natoboram.switcheroo.Main
 
minDurability - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
minDurability(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Shows the configuration for minDurability.
minDurabilitySet(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Sets the configuration for minDurability.
mobs - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig.Blacklist
 
MOD_ID - Static variable in class com.natoboram.switcheroo.Main
 

N

NOT_FOUND_EXCEPTION - Static variable in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
NOT_FOUND_EXCEPTION - Static variable in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 

O

onInitializeClient() - Method in class com.natoboram.switcheroo.Main
 

P

parse(StringReader) - Method in class com.natoboram.switcheroo.command.argument.BlockIdentifier
 
parse(StringReader) - Method in class com.natoboram.switcheroo.command.argument.EntityIdentifier
 
PlayerInventories - Class in com.natoboram.switcheroo.util
 
PlayerInventories() - Constructor for class com.natoboram.switcheroo.util.PlayerInventories
 
prefer - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig
 
Prefer() - Constructor for class com.natoboram.switcheroo.config.SwitcherooConfig.Prefer
 
preferSilkTouch(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Shows the list of blocks to prefer Silk Touch on.
preferSilkTouchAdd(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Add a block to prefer Silk Touch on.
preferSilkTouchRemove(CommandContext<FabricClientCommandSource>) - Static method in class com.natoboram.switcheroo.command.Commands
Remove a block to prefer Silk Touch on.

R

register(CommandDispatcher<FabricClientCommandSource>, CommandRegistryAccess) - Method in class com.natoboram.switcheroo.command.Registration
 
Registration - Class in com.natoboram.switcheroo.command
 
Registration(String) - Constructor for class com.natoboram.switcheroo.command.Registration
 
removeDamagedEnchantedItems(ArrayList<ItemStack>, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.ItemStacks
Removes enchanted items that have only 5 durability left.
round(double) - Static method in class com.natoboram.switcheroo.util.ItemStacks
 

S

silk_touch - Variable in class com.natoboram.switcheroo.config.SwitcherooConfig.Prefer
 
switcheroo(PlayerInventory, ItemStack, SwitcherooConfig) - Static method in class com.natoboram.switcheroo.util.PlayerInventories
Perform the actual switcheroo.
SwitcherooConfig - Class in com.natoboram.switcheroo.config
 
SwitcherooConfig() - Constructor for class com.natoboram.switcheroo.config.SwitcherooConfig
 
SwitcherooConfig.Blacklist - Class in com.natoboram.switcheroo.config
 
SwitcherooConfig.Prefer - Class in com.natoboram.switcheroo.config
 
SwitcherooModMenu - Class in com.natoboram.switcheroo.config
 
SwitcherooModMenu() - Constructor for class com.natoboram.switcheroo.config.SwitcherooModMenu
 
A B C D E F G I K L M N O P R S 
All Classes and Interfaces|All Packages|Constant Field Values