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

Class FunctionBool

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

Source from the content-addressed store, hash-verified

1package net.optifine.expr;
2
3public class FunctionBool implements IExpressionBool
4{
5 private FunctionType type;
6 private IExpression[] arguments;
7
8 public FunctionBool(FunctionType type, IExpression[] arguments)
9 {
10 this.type = type;
11 this.arguments = arguments;
12 }
13
14 public boolean eval()
15 {
16 return this.type.evalBool(this.arguments);
17 }
18
19 public ExpressionType getExpressionType()
20 {
21 return ExpressionType.BOOL;
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