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

Class ConstantFloat

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

Source from the content-addressed store, hash-verified

1package net.optifine.expr;
2
3public class ConstantFloat implements IExpressionFloat
4{
5 private float value;
6
7 public ConstantFloat(float value)
8 {
9 this.value = value;
10 }
11
12 public float eval()
13 {
14 return this.value;
15 }
16
17 public ExpressionType getExpressionType()
18 {
19 return ExpressionType.FLOAT;
20 }
21
22 public String toString()
23 {
24 return "" + this.value;
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected