Java 类net.minecraftforge.common.animation.ITimeValue 实例源码

项目:CustomWorldGen    文件:AnimationStateMachine.java   
@Deprecated
public AnimationStateMachine(ImmutableMap<String, ITimeValue> parameters, ImmutableMap<String, IClip> clips, ImmutableList<String> states, ImmutableMap<String, String> transitions, String startState)
{
    this(parameters, clips, states, ImmutableMultimap.copyOf(Multimaps.newSetMultimap(Maps.transformValues(transitions, new Function<String, Collection<String>>()
    {
        public Collection<String> apply(String input)
        {
            return ImmutableSet.of(input);
        }
    }), new Supplier<Set<String>>()
    {
        public Set<String> get()
        {
            return Sets.newHashSet();
        }
    })), startState);
}
项目:CustomWorldGen    文件:Clips.java   
public SlerpClip(IClip from, IClip to, ITimeValue input, ITimeValue progress)
{
    this.from = from;
    this.to = to;
    this.input = input;
    this.progress = progress;
}
项目:CustomWorldGen    文件:Clips.java   
private static IJointClip blendClips(final IJoint joint, final IJointClip fromClip, final IJointClip toClip, final ITimeValue input, final ITimeValue progress)
{
    return new IJointClip()
    {
        public TRSRTransformation apply(float time)
        {
            float clipTime = input.apply(time);
            return fromClip.apply(clipTime).slerp(toClip.apply(clipTime), MathHelper.clamp_float(progress.apply(time), 0, 1));
        }
    };
}
项目:CustomWorldGen    文件:AnimationStateMachine.java   
public AnimationStateMachine(ImmutableMap<String, ITimeValue> parameters, ImmutableMap<String, IClip> clips, ImmutableList<String> states, ImmutableMultimap<String, String> transitions, String startState)
{
    this.parameters = parameters;
    this.clips = clips;
    this.states = states;
    this.transitions = transitions;
    this.startState = startState;
}
项目:CustomWorldGen    文件:AnimationStateMachine.java   
public ITimeValue apply(String name)
{
    if(asm.parameters.containsKey(name))
    {
        return asm.parameters.get(name);
    }
    return customParameters.get(name);
}
项目:Randores2    文件:RandoresItem.java   
@Override
public ImmutableMap<String, ITimeValue> getAnimationParameters(ItemStack stack, World world, EntityLivingBase entity) {
    return this.delegate(stack, i -> i.getAnimationParameters(stack, world, entity), () -> super.getAnimationParameters(stack, world, entity));
}
项目:Randores2    文件:RandoresItemArmor.java   
@Override
public ImmutableMap<String, ITimeValue> getAnimationParameters(ItemStack stack, World world, EntityLivingBase entity) {
    return this.delegate(stack, i -> i.getAnimationParameters(stack, world, entity), () -> super.getAnimationParameters(stack, world, entity));
}
项目:CustomWorldGen    文件:ModelLoaderRegistry.java   
public static IAnimationStateMachine loadASM(ResourceLocation location, ImmutableMap<String, ITimeValue> customParameters)
{
    return AnimationStateMachine.load(manager, location, customParameters);
}
项目:CustomWorldGen    文件:Clips.java   
public TimeClip(IClip childClip, ITimeValue time)
{
    this.childClip = childClip;
    this.time = time;
}
项目:CustomWorldGen    文件:Clips.java   
public TriggerClip(IClip clip, ITimeValue parameter, String event)
{
    this.clip = clip;
    this.parameter = parameter;
    this.event = event;
}
项目:CustomWorldGen    文件:AnimationStateMachine.java   
public ParameterResolver(ImmutableMap<String, ITimeValue> customParameters)
{
    this.customParameters = customParameters;
}
项目:OpenBlocks    文件:TileEntityPaintMixer.java   
public TileEntityPaintMixer() {
    inventory.addCallback(this);
    this.asm = OpenMods.proxy.loadAsm(OpenBlocks.location("asms/block/paint_mixer.json"), ImmutableMap.<String, ITimeValue> of());
}
项目:OpenBlocks    文件:TileEntityProjector.java   
public TileEntityProjector() {
    this.asm = OpenMods.proxy.loadAsm(OpenBlocks.location("asms/block/projector.json"),
            ImmutableMap.<String, ITimeValue> of("last_change", lastChange));
}
项目:OpenModsLib    文件:OpenClientProxy.java   
@Override
public IAnimationStateMachine loadAsm(ResourceLocation location, ImmutableMap<String, ITimeValue> parameters) {
    return ModelLoaderRegistry.loadASM(location, parameters);
}
项目:OpenModsLib    文件:OpenServerProxy.java   
@Override
public IAnimationStateMachine loadAsm(ResourceLocation location, ImmutableMap<String, ITimeValue> parameters) {
    return null;
}
项目:OpenModsLib    文件:IOpenModsProxy.java   
public IAnimationStateMachine loadAsm(ResourceLocation location, ImmutableMap<String, ITimeValue> parameters);