From 21a26e1774e1a93c13136fe1384d02b55b034df4 Mon Sep 17 00:00:00 2001 From: strubium <113206902+strubium@users.noreply.github.com> Date: Sat, 9 Nov 2024 10:24:12 -0600 Subject: [PATCH] MultipartTransition --- .../animation/MultipartTransition.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/paneedah/weaponlib/animation/MultipartTransition.java b/src/main/java/com/paneedah/weaponlib/animation/MultipartTransition.java index fcfa01400..c680b06b9 100644 --- a/src/main/java/com/paneedah/weaponlib/animation/MultipartTransition.java +++ b/src/main/java/com/paneedah/weaponlib/animation/MultipartTransition.java @@ -1,5 +1,6 @@ package com.paneedah.weaponlib.animation; +import lombok.Getter; import net.minecraft.util.SoundEvent; import net.minecraft.util.math.Vec3d; @@ -16,12 +17,12 @@ public static Consumer anchoredPosition() { return (Consumer) DEFAULT_POSITION; } - public Context cont; + @Getter public Context context; private final Map> multipartPositionFunctions = new HashMap<>(); private final Map attachedTo = new HashMap<>(); - private final long duration; - private final long pause; + @Getter private final long duration; + @Getter private final long pause; public SoundEvent sound; @@ -91,18 +92,6 @@ public Consumer 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); }