# Index

A B C D E F G H I J L M N O P R S T U W Y
All Classes|All Packages|Constant Field Values

## A

appendHoverText(ItemStack, Level, List<Component>, TooltipFlag) - Method in class commoble.bagofyurting.BagOfYurtingItem
  allows items to add custom lines of information to the mouseover description
assemble(CraftingContainer) - Method in class commoble.bagofyurting.ShapedBagUpgradeRecipe
  Returns an Item that is the result of this recipe Returns the output of the recipe, but with radius NBT equal to smallest among inputs + 1
assemble(CraftingContainer) - Method in class commoble.bagofyurting.ShapelessBagUpgradeRecipe
  Returns an Item that is the result of this recipe Returns the output of the recipe, but with radius NBT equal to smallest among inputs + 1
attemptUnloadIntoLevel(UseOnContext, int) - Method in class commoble.bagofyurting.BagOfYurtingData

## B

BAG_OF_YURTING - Static variable in class commoble.bagofyurting.ObjectNames
BagOfYurtingAPI - Class in commoble.bagofyurting.api
BagOfYurtingAPI() - Constructor for class commoble.bagofyurting.api.BagOfYurtingAPI
BagOfYurtingData - Class in commoble.bagofyurting
BagOfYurtingData(Map<BlockPos, BagOfYurtingData.StateData>) - Constructor for class commoble.bagofyurting.BagOfYurtingData
BagOfYurtingData.StateData - Class in commoble.bagofyurting
bagOfYurtingItem - Variable in class commoble.bagofyurting.BagOfYurtingMod
BagOfYurtingItem - Class in commoble.bagofyurting
  This item collapses a portion of the Level into the item's internal storage when used on a block.
BagOfYurtingItem(Item.Properties) - Constructor for class commoble.bagofyurting.BagOfYurtingItem
BagOfYurtingMod - Class in commoble.bagofyurting
BagOfYurtingMod() - Constructor for class commoble.bagofyurting.BagOfYurtingMod
  One instance of this class is created by forge when mods are loaded
BASE_DIRECTION - Static variable in class commoble.bagofyurting.api.RotationUtil
  SOUTH is chosen because it's the 0-indexed direction for Direction's array of the four horizontal directions
BASE_DIRECTION - Static variable in class commoble.bagofyurting.BagOfYurtingData
blacklist - Static variable in class commoble.bagofyurting.TagWrappers
BlockDataDeserializer<T> - Interface in commoble.bagofyurting.api
BlockDataSerializer<T> - Interface in commoble.bagofyurting.api
BlockDataTransformer<T extends net.minecraft.world.level.block.entity.BlockEntity> - Class in commoble.bagofyurting.api
BlockDataTransformer(BlockDataSerializer<? super T>, BlockDataDeserializer<? super T>) - Constructor for class commoble.bagofyurting.api.BlockDataTransformer
BlockRemovalSorter - Class in commoble.bagofyurting
BlockRemovalSorter(Level) - Constructor for class commoble.bagofyurting.BlockRemovalSorter
BLOCKSTATE - Static variable in class commoble.bagofyurting.BagOfYurtingData.StateData
BlockUnloadSorter - Class in commoble.bagofyurting
BlockUnloadSorter() - Constructor for class commoble.bagofyurting.BlockUnloadSorter

## C

canSpawnBagParticles() - Static method in class commoble.bagofyurting.client.ClientEvents
CHANNEL - Static variable in class commoble.bagofyurting.BagOfYurtingMod
ClientConfig - Class in commoble.bagofyurting.client
ClientConfig(ForgeConfigSpec.Builder, ConfigHelper.Subscriber) - Constructor for class commoble.bagofyurting.client.ClientConfig
ClientEvents - Class in commoble.bagofyurting.client
ClientEvents() - Constructor for class commoble.bagofyurting.client.ClientEvents
CODEC - Static variable in class commoble.bagofyurting.CompressedBagOfYurtingData
CODEC - Static variable in class commoble.bagofyurting.CompressedBagOfYurtingData.CompressedStateData
commoble.bagofyurting - package commoble.bagofyurting
commoble.bagofyurting.api - package commoble.bagofyurting.api
commoble.bagofyurting.api.internal - package commoble.bagofyurting.api.internal
commoble.bagofyurting.client - package commoble.bagofyurting.client
commoble.bagofyurting.client.jei - package commoble.bagofyurting.client.jei
commoble.bagofyurting.storage - package commoble.bagofyurting.storage
commoble.bagofyurting.util - package commoble.bagofyurting.util
compare(Map.Entry<BlockPos, BagOfYurtingData.StateData>, Map.Entry<BlockPos, BagOfYurtingData.StateData>) - Method in class commoble.bagofyurting.BlockUnloadSorter
  When unloading blocks from the bag, we want to start from the bottom up, one layer at a time, with solid blocks in a layer being placed before non-solid blocks
compare(BlockPos, BlockPos) - Method in class commoble.bagofyurting.BlockRemovalSorter
  When we remove blocks, we want to remove them in layers from top to bottom, with the non-solid blocks in each layer being removed before the solid blocks.
compress() - Method in class commoble.bagofyurting.BagOfYurtingData
CompressedBagOfYurtingData - Class in commoble.bagofyurting
CompressedBagOfYurtingData(List<BlockState>, List<CompressedBagOfYurtingData.CompressedStateData>) - Constructor for class commoble.bagofyurting.CompressedBagOfYurtingData
CompressedBagOfYurtingData.CompressedStateData - Class in commoble.bagofyurting
CompressedStateData(BlockPos, int, Optional<CompoundTag>) - Constructor for class commoble.bagofyurting.CompressedBagOfYurtingData.CompressedStateData
config - Static variable in class commoble.bagofyurting.client.ClientEvents
ConfigHelper - Class in commoble.bagofyurting.util
ConfigHelper() - Constructor for class commoble.bagofyurting.util.ConfigHelper
ConfigHelper.ConfigValueListener<T> - Class in commoble.bagofyurting.util
ConfigHelper.Subscriber - Class in commoble.bagofyurting.util
contains(CompoundTag) - Static method in class commoble.bagofyurting.storage.DataIdNBTHelper
convertIngredient(Ingredient, int) - Static method in class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks
convertIngredients(NonNullList<Ingredient>, int) - Static method in class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks
convertIngredientStack(ItemStack, int) - Static method in class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks
creativeUpgradeIterations - Variable in class commoble.bagofyurting.ServerConfig

## D

DataIdNBTHelper - Class in commoble.bagofyurting.storage
DataIdNBTHelper() - Constructor for class commoble.bagofyurting.storage.DataIdNBTHelper
DataTransformers - Class in commoble.bagofyurting.api.internal
DataTransformers() - Constructor for class commoble.bagofyurting.api.internal.DataTransformers
DEFAULT_TRANSFORMER - Static variable in class commoble.bagofyurting.api.BagOfYurtingAPI
  The default blockentity data transformer used for writing and reading te data on yurt/unyurt when no transformer is assigned to a type
doesNBTContainYurtData(CompoundTag) - Static method in class commoble.bagofyurting.BagOfYurtingData

## E

EMPTY_AABB - Static variable in class commoble.bagofyurting.BagOfYurtingData
enableParticles - Variable in class commoble.bagofyurting.client.ClientConfig

## F

fillItemCategory(CreativeModeTab, NonNullList<ItemStack>) - Method in class commoble.bagofyurting.BagOfYurtingItem
  returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
freezeRegistries() - Static method in class commoble.bagofyurting.api.internal.DataTransformers
fromJson(ResourceLocation, JsonObject) - Method in class commoble.bagofyurting.ShapedBagUpgradeRecipe.Serializer
fromJson(ResourceLocation, JsonObject) - Method in class commoble.bagofyurting.ShapelessBagUpgradeRecipe.Serializer
fromNBT(CompoundTag) - Static method in class commoble.bagofyurting.CompressedBagOfYurtingData
  Reads data from nbt, logs an error if it fails to do so
fromNetwork(ResourceLocation, FriendlyByteBuf) - Method in class commoble.bagofyurting.ShapedBagUpgradeRecipe.Serializer
fromNetwork(ResourceLocation, FriendlyByteBuf) - Method in class commoble.bagofyurting.ShapelessBagUpgradeRecipe.Serializer

## G

generate(MinecraftServer) - Static method in class commoble.bagofyurting.storage.DataIdNBTHelper
get() - Method in class commoble.bagofyurting.util.ConfigHelper.ConfigValueListener
get(CompoundTag) - Static method in class commoble.bagofyurting.storage.DataIdNBTHelper
getBlockTagWrapper(String) - Static method in class commoble.bagofyurting.TagWrappers
getColor(ItemStack) - Method in class commoble.bagofyurting.BagOfYurtingItem
getData() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData
getDataReader(ItemStack) - Static method in class commoble.bagofyurting.BagOfYurtingItem
  Converting NBT to the map data can be expensive if the NBT is not present, returns a null supplier if the NBT is present, return a non-null supplier that generates the data
getDataTransformer(BlockEntityType<?>) - Static method in class commoble.bagofyurting.api.BagOfYurtingAPI
  Get a block data transformer for a given blockentity's type.
getDeserializer() - Method in class commoble.bagofyurting.api.BlockDataTransformer
getDiameter(ItemStack) - Method in class commoble.bagofyurting.BagOfYurtingItem
getFakeShapedRecipe(ShapedBagUpgradeRecipe, int) - Static method in class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks
getFakeShapelessRecipe(ShapelessBagUpgradeRecipe, int) - Static method in class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks
getHorizontalDifferenceRotation(Direction, Direction) - Static method in class commoble.bagofyurting.api.RotationUtil
  Returns a rotation value needed to rotate from one horizontal direction to another.
getNBT() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData.CompressedStateData
getPos() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData.CompressedStateData
getRadius(ItemStack) - Method in class commoble.bagofyurting.BagOfYurtingItem
getResultItem() - Method in class commoble.bagofyurting.ShapedBagUpgradeRecipe
  Get the result of this recipe, usually for display purposes (e.g.
getResultItem() - Method in class commoble.bagofyurting.ShapelessBagUpgradeRecipe
  Get the result of this recipe, usually for display purposes (e.g.
getSerializer() - Method in class commoble.bagofyurting.api.BlockDataTransformer
getSerializer() - Method in class commoble.bagofyurting.ShapedBagUpgradeRecipe
getSerializer() - Method in class commoble.bagofyurting.ShapelessBagUpgradeRecipe
getSortValue(BlockPos) - Method in class commoble.bagofyurting.BlockRemovalSorter
getState() - Method in class commoble.bagofyurting.BagOfYurtingData.StateData
getStateIndex() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData.CompressedStateData
getStates() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData
getTransformRotation(Direction) - Static method in class commoble.bagofyurting.api.RotationUtil
  Get the rotation Bag of Yurting uses to serialize data consistently given the horizontal facing of the player when they use the bag to store blocks in the back
getUntransformRotation(Direction) - Static method in class commoble.bagofyurting.api.RotationUtil
  Get the rotation Bag of Yurting uses to deserialize data consistently given the horizontal facing of the player when they use the bag to unload blocks into the Level
getUpgradeRecipeResult(List<ItemStack>, ItemStack) - Static method in class commoble.bagofyurting.BagOfYurtingItem

## H

handle(Supplier<NetworkEvent.Context>) - Method in class commoble.bagofyurting.IsWasSprintPacket
handle(Supplier<NetworkEvent.Context>) - Method in class commoble.bagofyurting.OptionalSpawnParticlePacket
handle(ClientGamePacketListener) - Method in class commoble.bagofyurting.OptionalSpawnParticlePacket
has(MinecraftServer, String) - Static method in class commoble.bagofyurting.storage.StorageManager
hasData(CompoundTag) - Method in class commoble.bagofyurting.util.NBTMapHelper

## I

INSTANCE - Static variable in class commoble.bagofyurting.BagOfYurtingMod
INSTANCE - Static variable in class commoble.bagofyurting.BlockUnloadSorter
INSTANCE - Static variable in class commoble.bagofyurting.ServerConfig
invertSafetyOverride - Variable in class commoble.bagofyurting.client.ClientConfig
isEmpty() - Method in class commoble.bagofyurting.BagOfYurtingData
isFoil(ItemStack) - Method in class commoble.bagofyurting.BagOfYurtingItem
isPlayerOverridingSafetyList(UUID) - Static method in class commoble.bagofyurting.TransientPlayerData
IsWasSprintPacket - Class in commoble.bagofyurting
IsWasSprintPacket(boolean) - Constructor for class commoble.bagofyurting.IsWasSprintPacket

## J

JEIProxy - Class in commoble.bagofyurting.client.jei
JEIProxy() - Constructor for class commoble.bagofyurting.client.jei.JEIProxy
JEIUpgradeRecipeHacks - Class in commoble.bagofyurting.client.jei
JEIUpgradeRecipeHacks() - Constructor for class commoble.bagofyurting.client.jei.JEIUpgradeRecipeHacks

## L

load(MinecraftServer, String) - Static method in class commoble.bagofyurting.storage.StorageManager
loadBag(MinecraftServer, UseOnContext) - Method in class commoble.bagofyurting.BagOfYurtingItem
LOGGER - Static variable in class commoble.bagofyurting.CompressedBagOfYurtingData

## M

minPermissionToYurtUnyurtableBlocks - Variable in class commoble.bagofyurting.ServerConfig
MODID - Static variable in class commoble.bagofyurting.BagOfYurtingMod

## N

NBT_KEY - Static variable in class commoble.bagofyurting.BagOfYurtingData
NBTMapHelper<K,​KNBT extends net.minecraft.nbt.Tag,​V,​VNBT extends net.minecraft.nbt.Tag> - Class in commoble.bagofyurting.util
  Helper class for writing a Map into a CompoundTag example usage for use in e.g.
NBTMapHelper(String, Function<K, KNBT>, Function<KNBT, K>, Function<V, VNBT>, Function<VNBT, V>) - Constructor for class commoble.bagofyurting.util.NBTMapHelper

## O

ObjectNames - Class in commoble.bagofyurting
ObjectNames() - Constructor for class commoble.bagofyurting.ObjectNames
of(ForgeConfigSpec.ConfigValue<T>, List<ConfigHelper.ConfigValueListener<?>>) - Static method in class commoble.bagofyurting.util.ConfigHelper.ConfigValueListener
onHandleOptionalSpawnParticlePacket(OptionalSpawnParticlePacket) - Static method in class commoble.bagofyurting.client.ClientEvents
onSave(ServerLevel) - Static method in class commoble.bagofyurting.storage.StorageManager
OptionalSpawnParticlePacket - Class in commoble.bagofyurting
OptionalSpawnParticlePacket(FriendlyByteBuf) - Constructor for class commoble.bagofyurting.OptionalSpawnParticlePacket
OptionalSpawnParticlePacket(T, boolean, double, double, double, float, float, float, float, int) - Constructor for class commoble.bagofyurting.OptionalSpawnParticlePacket
overridingSafetyList - Static variable in class commoble.bagofyurting.client.ClientEvents

## P

PROTOCOL_VERSION - Static variable in class commoble.bagofyurting.BagOfYurtingMod

## R

RADIUS_KEY - Static variable in class commoble.bagofyurting.BagOfYurtingItem
read(CompoundTag) - Static method in class commoble.bagofyurting.BagOfYurtingData
  Creates a new instance from an NBT compound.
read(CompoundTag) - Static method in class commoble.bagofyurting.BagOfYurtingData.StateData
read(CompoundTag) - Method in class commoble.bagofyurting.util.NBTMapHelper
  Reconstructs and returns a `Map<K,V>` from a CompoundTag If the nbt used was given by this.write(map), the map returned will be a reconstruction of the original Map
read(FriendlyByteBuf) - Static method in class commoble.bagofyurting.IsWasSprintPacket
read(FriendlyByteBuf) - Static method in class commoble.bagofyurting.OptionalSpawnParticlePacket
readWithYurtContext(T, CompoundTag, Level, BlockPos, BlockState, Rotation, BlockPos, BlockPos, BlockPos) - Method in interface commoble.bagofyurting.api.BlockDataDeserializer
  Function that reads a standard-format blockentity compound into the given blockentity, applying transformations from yurt context if necessary.
register(String, T) - Method in class commoble.bagofyurting.Registrator
register(ModConfig.Type, BiFunction<ForgeConfigSpec.Builder, ConfigHelper.Subscriber, T>) - Static method in class commoble.bagofyurting.util.ConfigHelper
  as with the other register method, but the contexts are assumed
register(ModLoadingContext, FMLJavaModLoadingContext, ModConfig.Type, BiFunction<ForgeConfigSpec.Builder, ConfigHelper.Subscriber, T>) - Static method in class commoble.bagofyurting.util.ConfigHelper
  call this in either your @Mod class constructor or in FMLCommonSetupEvent or in FMLClientSetupEvent
registerBlockDataTransformer(BlockEntityType<T>, BlockDataSerializer<? super T>, BlockDataDeserializer<? super T>) - Static method in class commoble.bagofyurting.api.BagOfYurtingAPI
  Register block data transformers to a tile entity type.
Registrator<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>> - Class in commoble.bagofyurting
Registrator(RegistryEvent.Register<T>) - Constructor for class commoble.bagofyurting.Registrator
remove(String) - Static method in class commoble.bagofyurting.storage.StorageManager
remove(CompoundTag) - Static method in class commoble.bagofyurting.storage.DataIdNBTHelper
replaceable - Static variable in class commoble.bagofyurting.TagWrappers
RotationUtil - Class in commoble.bagofyurting.api
RotationUtil() - Constructor for class commoble.bagofyurting.api.RotationUtil

## S

save(String, BagOfYurtingData) - Static method in class commoble.bagofyurting.storage.StorageManager
Serializer() - Constructor for class commoble.bagofyurting.ShapedBagUpgradeRecipe.Serializer
Serializer() - Constructor for class commoble.bagofyurting.ShapelessBagUpgradeRecipe.Serializer
ServerConfig - Class in commoble.bagofyurting
ServerConfig(ForgeConfigSpec.Builder, ConfigHelper.Subscriber) - Constructor for class commoble.bagofyurting.ServerConfig
set(CompoundTag, String) - Static method in class commoble.bagofyurting.storage.DataIdNBTHelper
setBlockEntityData(Level, BlockPos, Rotation, BlockPos, BlockPos, BlockPos) - Method in class commoble.bagofyurting.BagOfYurtingData.StateData
setBlockIntoLevel(Level, BlockPos, Rotation) - Method in class commoble.bagofyurting.BagOfYurtingData.StateData
setOverridingSafetyList(UUID, boolean) - Static method in class commoble.bagofyurting.TransientPlayerData
SHAPED_UPGRADE_RECIPE - Static variable in class commoble.bagofyurting.ObjectNames
ShapedBagUpgradeRecipe - Class in commoble.bagofyurting
ShapedBagUpgradeRecipe(ResourceLocation, String, int, int, NonNullList<Ingredient>, ItemStack, int) - Constructor for class commoble.bagofyurting.ShapedBagUpgradeRecipe
ShapedBagUpgradeRecipe.Serializer - Class in commoble.bagofyurting
shapedUpgradeRecipeSerializer - Variable in class commoble.bagofyurting.BagOfYurtingMod
SHAPELESS_UPGRADE_RECIPE - Static variable in class commoble.bagofyurting.ObjectNames
ShapelessBagUpgradeRecipe - Class in commoble.bagofyurting
ShapelessBagUpgradeRecipe(ResourceLocation, String, ItemStack, NonNullList<Ingredient>, int) - Constructor for class commoble.bagofyurting.ShapelessBagUpgradeRecipe
ShapelessBagUpgradeRecipe.Serializer - Class in commoble.bagofyurting
shapelessUpgradeRecipeSerializer - Variable in class commoble.bagofyurting.BagOfYurtingMod
spawnParticlesFromServer(ServerLevel, T, double, double, double, int, double, double, double, double) - Static method in class commoble.bagofyurting.OptionalSpawnParticlePacket
StateData(BlockState, CompoundTag) - Constructor for class commoble.bagofyurting.BagOfYurtingData.StateData
StorageManager - Class in commoble.bagofyurting.storage
  This class manages storage of `BagOfYurtingData`.
StorageManager() - Constructor for class commoble.bagofyurting.storage.StorageManager
subscribe(ForgeConfigSpec.ConfigValue<T>) - Method in class commoble.bagofyurting.util.ConfigHelper.Subscriber
subscribeClientEvents(IEventBus, IEventBus) - Static method in class commoble.bagofyurting.client.ClientEvents

## T

TagWrappers - Class in commoble.bagofyurting
TagWrappers() - Constructor for class commoble.bagofyurting.TagWrappers
TILE - Static variable in class commoble.bagofyurting.BagOfYurtingData.StateData
toNBT() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData
transformBlockPos(Rotation, BlockPos, BlockPos) - Static method in class commoble.bagofyurting.api.RotationUtil
  First, we take the offset of the block pos relative to the origin of the yurt Second, we rotate this offset around the origin's y-axis The rotation is the difference angle between the player's orientation and some constant direction The difference when we unload the yurt is reversed from the difference when we load the yurt (b-a instead of a-b) The result is that when we unload, the rotation of the yurt relative to the player is preserved some examples: player facing south both times -- no rotation player facing west both times -- first rotate 90 degrees, then -90 degrees -- no rotation player facing south first, then west first -- no rotation -- block offsets are original positions second -- rotate from SOUTH to WEST = +90 degrees a block that was originally south of the player will now be west of the player a block that was originally in front of the player will still be in front of the player player facing west first, then east first -- rotate from west to south -- -90 degrees second -- rotate from south to east -- -90 degrees all blocks will be rotated 180 degrees around the player
transformers - Static variable in class commoble.bagofyurting.api.internal.DataTransformers
TransientPlayerData - Class in commoble.bagofyurting
  Class that holds information on players on the server This should only be referenced from the server thread Data should be considered temporary, no data is saved on Level save
TransientPlayerData() - Constructor for class commoble.bagofyurting.TransientPlayerData

## U

uncompress() - Method in class commoble.bagofyurting.CompressedBagOfYurtingData
UNDYED_COLOR - Static variable in class commoble.bagofyurting.BagOfYurtingItem
unloadBag(UseOnContext, BagOfYurtingData) - Method in class commoble.bagofyurting.BagOfYurtingItem
untransformBlockPos(Rotation, BlockPos, BlockPos) - Static method in class commoble.bagofyurting.api.RotationUtil
  Undoes the transformBlockPos function, converting a (relative) offset to an (absolute) origin to an absolute position in Levelspace (applying the given rotation before transforming)
update() - Method in class commoble.bagofyurting.util.ConfigHelper.ConfigValueListener
UPGRADE_RECIPE - Static variable in class commoble.bagofyurting.ObjectNames
useOn(UseOnContext) - Method in class commoble.bagofyurting.BagOfYurtingItem

## W

whitelist - Static variable in class commoble.bagofyurting.TagWrappers
withRadius(ItemStack, int) - Method in class commoble.bagofyurting.BagOfYurtingItem
write() - Method in class commoble.bagofyurting.BagOfYurtingData.StateData
write(Map<K, V>, CompoundTag) - Method in class commoble.bagofyurting.util.NBTMapHelper
  Given a map and a CompoundTag, writes the map into the NBT The same CompoundTag can be given to this.read to retrieve that map
write(FriendlyByteBuf) - Method in class commoble.bagofyurting.IsWasSprintPacket
writeIntoNBT(CompoundTag) - Method in class commoble.bagofyurting.BagOfYurtingData
writeWithYurtContext(T, CompoundTag, Rotation, BlockPos, BlockPos, BlockPos, BlockPos) - Method in interface commoble.bagofyurting.api.BlockDataSerializer
  Function that writes a blockentity's data into the supplied CompoundTag.

## Y

yurtBlocksAndConvertToData(UseOnContext, int) - Static method in class commoble.bagofyurting.BagOfYurtingData
  Removes blocks from the Level and stores them as yurt data, returning the data

A B C D E F G H I J L M N O P R S T U W Y
All Classes|All Packages|Constant Field Values