Contents
Class BuilderExpressionStaticNumberArray
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.expression.BuilderExpression
com.hypixel.hytale.server.npc.asset.builder.expression.BuilderExpressionStaticNumberArray
- Since:
- 2017-11-22
-
Field Summary
FieldsFields inherited from class BuilderExpression
STATIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToScope(String name, StdScope scope) static int[]convertDoubleToIntArray(double[] source) static double[]convertIntToDoubleArray(int[] source) fromJSON(com.google.gson.JsonArray jsonArray) int[]getIntegerArray(ExecutionContext executionContext) double[]getNumberArray(ExecutionContext executionContext) getType()booleanisStatic()voidupdateScope(StdScope scope, String name, ExecutionContext executionContext) Methods inherited from class BuilderExpression
compile, fromJSON, fromJSON, fromJSON, fromOperand, getBoolean, getBooleanArray, getExpression, getNumber, getString, getStringArray, toSchema
-
Field Details
-
INSTANCE_EMPTY
-
-
Constructor Details
-
BuilderExpressionStaticNumberArray
public BuilderExpressionStaticNumberArray(double[] array)
-
-
Method Details
-
getType
- Specified by:
getTypein classBuilderExpression
-
isStatic
public boolean isStatic()- Specified by:
isStaticin classBuilderExpression
-
getNumberArray
- Overrides:
getNumberArrayin classBuilderExpression
-
getIntegerArray
- Overrides:
getIntegerArrayin classBuilderExpression
-
addToScope
- Overrides:
addToScopein classBuilderExpression
-
updateScope
- Overrides:
updateScopein classBuilderExpression
-
fromJSON
@Nullable public static BuilderExpressionStaticNumberArray fromJSON(@Nonnull com.google.gson.JsonArray jsonArray) -
convertDoubleToIntArray
public static int[] convertDoubleToIntArray(@Nullable double[] source) -
convertIntToDoubleArray
public static double[] convertIntToDoubleArray(@Nullable int[] source)
-