Skip to content

Commit

Permalink
MultipartTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Nov 9, 2024
1 parent f42fc60 commit 21a26e1
Showing 1 changed file with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.paneedah.weaponlib.animation;

import lombok.Getter;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.Vec3d;

Expand All @@ -16,12 +17,12 @@ public static <Context> Consumer<Context> anchoredPosition() {
return (Consumer<Context>) DEFAULT_POSITION;
}

public Context cont;
@Getter public Context context;

private final Map<Part, Consumer<Context>> multipartPositionFunctions = new HashMap<>();
private final Map<Part, Part> attachedTo = new HashMap<>();
private final long duration;
private final long pause;
@Getter private final long duration;
@Getter private final long pause;

public SoundEvent sound;

Expand Down Expand Up @@ -91,18 +92,6 @@ public Consumer<Context> getPositioning(Part part) {
return multipartPositionFunctions.get(part);
}

public Context getContext() {
return this.cont;
}

public long getDuration() {
return duration;
}

public long getPause() {
return pause;
}

public Part getAttachedTo(Part part) {
return attachedTo.get(part);
}
Expand Down

0 comments on commit 21a26e1

Please sign in to comment.