Class ElementalApplication.Builder
java.lang.Object
io.github.xrickastley.sevenelements.element.ElementalApplication.Builder
- Enclosing class:
- ElementalApplication
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ElementalApplication.Builder>private doubleprivate Elementprivate doubleprivate booleanprivate ElementalApplication.Type -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)Builder()privateBuilder(ElementalApplication.Type type, Element element, boolean isAura, double gaugeUnits, double duration) -
Method Summary
Modifier and TypeMethodDescriptionbuild(LivingEntity entity) booleandoublestatic TextgetText(ElementalApplication.Builder builder) static TextgetText(ElementalApplication.Builder builder, @Nullable String gaugeFormat) static TextgetText(ElementalApplication.Builder builder, @Nullable String gaugeFormat, @Nullable String durationFormat) static TextgetText(ElementalApplication.Builder builder, @Nullable DecimalFormat gaugeFormat) static TextgetText(ElementalApplication.Builder builder, @Nullable DecimalFormat gaugeFormat, @Nullable DecimalFormat durationFormat) setAsAura(boolean isAura) setDuration(double duration) setElement(Element element) setGaugeUnits(double gaugeUnits)
-
Field Details
-
CODEC
-
type
-
element
-
isAura
private boolean isAura -
gaugeUnits
private double gaugeUnits -
duration
private double duration
-
-
Constructor Details
-
Builder
Builder() -
Builder
private Builder(ElementalApplication.Type type, Element element, boolean isAura, double gaugeUnits, double duration)
-
-
Method Details
-
getText
-
getText
public static Text getText(ElementalApplication.Builder builder, @Nullable @Nullable String gaugeFormat) -
getText
public static Text getText(ElementalApplication.Builder builder, @Nullable @Nullable DecimalFormat gaugeFormat) -
getText
public static Text getText(ElementalApplication.Builder builder, @Nullable @Nullable String gaugeFormat, @Nullable @Nullable String durationFormat) -
getText
public static Text getText(ElementalApplication.Builder builder, @Nullable @Nullable DecimalFormat gaugeFormat, @Nullable @Nullable DecimalFormat durationFormat) -
getElement
-
getGaugeUnits
public double getGaugeUnits() -
setType
-
setElement
-
setAsAura
-
setGaugeUnits
-
setDuration
-
build
-
equals
-