Class ArsMagicaClientApi
java.lang.Object
at.minecraftschurli.mods.arsmagicalegacy.api.client.ArsMagicaClientApi
The client entrypoint for the Ars Magica: Legacy API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable OcculusTabRenderer.FactoryocculusTabRendererFactory(net.minecraft.core.Holder<OcculusTab> tab) static @Nullable ParticleController.TypeparticleController(net.minecraft.resources.Identifier id) static booleanstatic List<? extends ControlledParticle> spawnParticles(ParticleSpawner spawner, net.minecraft.world.phys.Vec3 position, int color, @Nullable net.minecraft.world.entity.LivingEntity caster, @Nullable net.minecraft.world.entity.Entity directEntity, @Nullable net.minecraft.world.phys.HitResult hitResult) static @Nullable SpellPartCustomizationScreen.Factory<?, ?> spellPartCustomizationScreen(net.minecraft.core.Holder<SpellPart> spellPart)
-
Constructor Details
-
ArsMagicaClientApi
public ArsMagicaClientApi()
-
-
Method Details
-
occulusTabRendererFactory
public static @Nullable OcculusTabRenderer.Factory occulusTabRendererFactory(net.minecraft.core.Holder<OcculusTab> tab) - Parameters:
tab- TheHolderto get theOcculusTabRenderer.Factoryfor.- Returns:
- The
OcculusTabRenderer.Factoryfor the specifiedHolder.
-
particleController
public static @Nullable ParticleController.Type particleController(net.minecraft.resources.Identifier id) - Parameters:
id- The id of theParticleControllerto get.- Returns:
- The
ParticleControllerfor the given id.
-
spellPartCustomizationScreen
public static @Nullable SpellPartCustomizationScreen.Factory<?,?> spellPartCustomizationScreen(net.minecraft.core.Holder<SpellPart> spellPart) - Parameters:
spellPart- TheSpellPartto get theSpellPartCustomizationScreen.Factoryfor.- Returns:
- The
SpellPartCustomizationScreen.Factoryfor the givenSpellPart.
-
createMagitechGogglesOutlineRenderState
- Returns:
- A new
MagitechGogglesOverlayRenderState.
-
shouldRenderMagitechGogglesOutline
public static boolean shouldRenderMagitechGogglesOutline()- Returns:
- Whether the Magitech Goggles' outlines should be rendered or not.
-
spawnParticles
public static List<? extends ControlledParticle> spawnParticles(ParticleSpawner spawner, net.minecraft.world.phys.Vec3 position, int color, @Nullable net.minecraft.world.entity.LivingEntity caster, @Nullable net.minecraft.world.entity.Entity directEntity, @Nullable net.minecraft.world.phys.HitResult hitResult) - Parameters:
spawner- TheParticleSpawnerto use.position- The position of the particles.color- The particle color to use. Use -1 to not set a color.caster- TheLivingEntitycasting theSpell. May be null if this is not called from a spell cast.directEntity- The entity applying theSpell, e.g. a projectile. May or may not be identical to the caster. May be null if this is not called from a spell cast.hitResult- TheHitResultof the spell cast. May be null if this is not called from a spell cast.- Returns:
- A
Listof theControlledParticles that were created.
-