Package vazkii.botania.common.component
Class BotaniaDataComponents
java.lang.Object
vazkii.botania.common.component.BotaniaDataComponents
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> General persisted "active" flag for items that can be toggled and need to remember their state later.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Transient "active" flag for items with an active state that does not need to be persisted.static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.ItemStack> static final net.minecraft.core.component.DataComponentType<net.minecraft.core.GlobalPos> static final net.minecraft.core.component.DataComponentType<Integer> static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defines that the item can provide mana to mana-consuming items in the player's inventory.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defines that the item can be drained into a mana pool.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defines that the item can receive mana while in the player's inventory, e.g.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defines that the item can be filled in a mana pool.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defined that the item can provide infinite mana without draining itself.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> static final net.minecraft.core.component.DataComponentType<Float> static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> static final net.minecraft.core.component.DataComponentType<Long> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Defines that the lens is rainbow-tinted.static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> Defines the dyed lens color value.static final net.minecraft.core.component.DataComponentType<Integer> Current amount of mana in the item.static final net.minecraft.core.component.DataComponentType<Integer> Mana backlog to be processed later through some other means.static final net.minecraft.core.component.DataComponentType<net.minecraft.core.GlobalPos> Bound pool of a mana mirror.static final net.minecraft.core.component.DataComponentType<Integer> Maximum amount of mana in the item.static final net.minecraft.core.component.DataComponentType<Integer> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> static final net.minecraft.core.component.DataComponentType<Long> static final net.minecraft.core.component.DataComponentType<Integer> static final net.minecraft.core.component.DataComponentType<Integer> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> Helper component that causes mana pool items to be rendered with mana content.static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> static final net.minecraft.core.component.DataComponentType<List<net.minecraft.core.BlockPos>> static final net.minecraft.core.component.DataComponentType<HaloRecipeStorageComponent> static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterComponents(BiConsumer<net.minecraft.core.component.DataComponentType<?>, net.minecraft.resources.ResourceLocation> biConsumer)
-
Field Details
-
ACTIVE
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> ACTIVEGeneral persisted "active" flag for items that can be toggled and need to remember their state later. (examples: stone of temperance, manufactory halo's auto-crafting, terra shatterer) -
ACTIVE_TRANSIENT
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> ACTIVE_TRANSIENTTransient "active" flag for items with an active state that does not need to be persisted. (examples: slime in a bottle being happy, assembly halo being held, bauble box being open) -
PHANTOM_INKED
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> PHANTOM_INKED -
RESOLUTE_IVY
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> RESOLUTE_IVY -
ELEMENTIUM_TIPPED
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> ELEMENTIUM_TIPPED -
ELVEN_UNLOCK
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> ELVEN_UNLOCK -
RENDER_FULL
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> RENDER_FULLHelper component that causes mana pool items to be rendered with mana content. -
WAND_COLOR1
public static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> WAND_COLOR1 -
WAND_COLOR2
public static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> WAND_COLOR2 -
WAND_BIND_MODE
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> WAND_BIND_MODE -
BINDING_POS
public static final net.minecraft.core.component.DataComponentType<net.minecraft.core.GlobalPos> BINDING_POS -
MANA
Current amount of mana in the item. -
MAX_MANA
Maximum amount of mana in the item. Not fixed and may become zero if the item can temporarily not store any mana. -
MANA_BACKLOG
Mana backlog to be processed later through some other means. If this component exists, it receives the same delta amounts as theMANAcomponent. -
CAN_RECEIVE_MANA_FROM_ITEM
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> CAN_RECEIVE_MANA_FROM_ITEMDefines that the item can receive mana while in the player's inventory, e.g. from mana producers or nearby dispersive sparks. -
CAN_RECEIVE_MANA_FROM_POOL
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> CAN_RECEIVE_MANA_FROM_POOLDefines that the item can be filled in a mana pool. -
CAN_EXPORT_MANA_TO_ITEM
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> CAN_EXPORT_MANA_TO_ITEMDefines that the item can provide mana to mana-consuming items in the player's inventory. -
CAN_EXPORT_MANA_TO_POOL
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> CAN_EXPORT_MANA_TO_POOLDefines that the item can be drained into a mana pool. -
CREATIVE_MANA
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> CREATIVE_MANADefined that the item can provide infinite mana without draining itself. -
MANA_POOL_POS
public static final net.minecraft.core.component.DataComponentType<net.minecraft.core.GlobalPos> MANA_POOL_POSBound pool of a mana mirror. (Not part of the default mana item implementation.) -
RANGE
-
HALO_ROTATION_BASE
-
LAST_RECIPE_ID
public static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> LAST_RECIPE_ID -
STORED_RECIPES
public static final net.minecraft.core.component.DataComponentType<HaloRecipeStorageComponent> STORED_RECIPES -
LAST_TRIGGER_TIME
-
LENS_TINT
public static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.DyeColor> LENS_TINTDefines the dyed lens color value. Should not be used together withLENS_RAINBOW_TINT. -
LENS_RAINBOW_TINT
public static final net.minecraft.core.component.DataComponentType<net.minecraft.util.Unit> LENS_RAINBOW_TINTDefines that the lens is rainbow-tinted. Takes precedence overLENS_TINT. -
ATTACHED_LENS
public static final net.minecraft.core.component.DataComponentType<net.minecraft.world.item.ItemStack> ATTACHED_LENS -
BREW
public static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> BREW -
MAX_USES
-
REMAINING_USES
-
RANDOM_SEED
-
SPECTATOR_HIGHLIGHT_ENTITIES
-
SPECTATOR_HIGHLIGHT_BLOCKS
public static final net.minecraft.core.component.DataComponentType<List<net.minecraft.core.BlockPos>> SPECTATOR_HIGHLIGHT_BLOCKS -
BLOCK_TYPE
public static final net.minecraft.core.component.DataComponentType<net.minecraft.resources.ResourceLocation> BLOCK_TYPE -
BLOCK_COUNT
-
-
Constructor Details
-
BotaniaDataComponents
public BotaniaDataComponents()
-
-
Method Details
-
registerComponents
public static void registerComponents(BiConsumer<net.minecraft.core.component.DataComponentType<?>, net.minecraft.resources.ResourceLocation> biConsumer)
-