MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / FunctionFloatArray

Class FunctionFloatArray

src/main/java/net/optifine/expr/FunctionFloatArray.java:3–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package net.optifine.expr;
2
3public class FunctionFloatArray implements IExpressionFloatArray
4{
5 private FunctionType type;
6 private IExpression[] arguments;
7
8 public FunctionFloatArray(FunctionType type, IExpression[] arguments)
9 {
10 this.type = type;
11 this.arguments = arguments;
12 }
13
14 public float[] eval()
15 {
16 return this.type.evalFloatArray(this.arguments);
17 }
18
19 public ExpressionType getExpressionType()
20 {
21 return ExpressionType.FLOAT_ARRAY;
22 }
23
24 public String toString()
25 {
26 return "" + this.type + "()";
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected