| 1 | package net.optifine.expr; |
| 2 | |
| 3 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected