Uses of Record Class
net.neoforged.neoforge.client.entity.animation.AnimationTarget
Packages that use AnimationTarget
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of AnimationTarget in net.neoforged.neoforge.client.entity.animation
Fields in net.neoforged.neoforge.client.entity.animation declared as AnimationTargetModifier and TypeFieldDescriptionstatic final AnimationTarget
AnimationTarget.POSITION
static final AnimationTarget
AnimationTarget.ROTATION
static final AnimationTarget
AnimationTarget.SCALE
-
Uses of AnimationTarget in net.neoforged.neoforge.client.entity.animation.json
Fields in net.neoforged.neoforge.client.entity.animation.json with type parameters of type AnimationTargetModifier and TypeFieldDescriptionprivate static final com.google.common.collect.ImmutableBiMap
<net.minecraft.resources.ResourceLocation, AnimationTarget> AnimationTypeManager.DEFAULT_TARGETS
private static com.google.common.collect.ImmutableMap
<AnimationTarget, com.mojang.serialization.Codec<net.minecraft.client.animation.Keyframe>> AnimationTypeManager.KEYFRAME_CODECS
private static final com.mojang.serialization.Codec
<AnimationTarget> AnimationParser.TARGET_CODEC
invalid @snippet
{@snippet lang = JSON :
private static com.google.common.collect.ImmutableBiMap
<net.minecraft.resources.ResourceLocation, AnimationTarget> AnimationTypeManager.TARGETS
private static com.google.common.collect.ImmutableMap
<net.minecraft.client.animation.AnimationChannel.Target, AnimationTarget> AnimationTypeManager.TARGETS_BY_CHANNEL_TARGET
Methods in net.neoforged.neoforge.client.entity.animation.json that return AnimationTargetModifier and TypeMethodDescriptionstatic @Nullable AnimationTarget
AnimationTypeManager.getTarget
(net.minecraft.resources.ResourceLocation name) Gets theAnimationTarget
associated with the givenname
.static @Nullable AnimationTarget
AnimationTypeManager.getTargetFromChannelTarget
(net.minecraft.client.animation.AnimationChannel.Target target) Gets the fullAnimationTarget
from itschannelTarget
.Methods in net.neoforged.neoforge.client.entity.animation.json with parameters of type AnimationTargetModifier and TypeMethodDescriptionstatic @Nullable com.mojang.serialization.Codec
<net.minecraft.client.animation.Keyframe> AnimationTypeManager.getKeyframeCodec
(AnimationTarget target) static @Nullable net.minecraft.resources.ResourceLocation
AnimationTypeManager.getTargetName
(AnimationTarget target) Gets theResourceLocation
associated with the giventarget
.(package private) static com.mojang.serialization.Codec
<net.minecraft.client.animation.Keyframe> AnimationParser.keyframeCodec
(AnimationTarget target) { "timestamp": 0.5, "target": [22.5, 0.0, 0.0], "interpolation": "minecraft:linear" }
-
Uses of AnimationTarget in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event with type parameters of type AnimationTargetModifier and TypeFieldDescriptionprivate final Map
<net.minecraft.resources.ResourceLocation, AnimationTarget> RegisterJsonAnimationTypesEvent.registeredTargets
private final com.google.common.collect.ImmutableMap.Builder
<net.minecraft.resources.ResourceLocation, AnimationTarget> RegisterJsonAnimationTypesEvent.targets
Methods in net.neoforged.neoforge.client.event with parameters of type AnimationTargetModifier and TypeMethodDescriptionvoid
RegisterJsonAnimationTypesEvent.registerTarget
(net.minecraft.resources.ResourceLocation key, AnimationTarget target) Register a customAnimationTarget
with the specifiedkey
.Constructor parameters in net.neoforged.neoforge.client.event with type arguments of type AnimationTargetModifierConstructorDescriptionRegisterJsonAnimationTypesEvent
(com.google.common.collect.ImmutableMap.Builder<net.minecraft.resources.ResourceLocation, AnimationTarget> targets, com.google.common.collect.ImmutableMap.Builder<net.minecraft.resources.ResourceLocation, net.minecraft.client.animation.AnimationChannel.Interpolation> interpolations)