Class IntegerScratchClass
java.lang.Object
com.petrolpark.core.scratch.classes.IntegerScratchClass
- All Implemented Interfaces:
IParseableScratchClass<Long,,ExpressionOrLiteralArgument<IScratchEnvironment, Long>> IScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
public class IntegerScratchClass
extends Object
implements IParseableScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment,Long>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.core.scratch.IScratchClass
IScratchClass.Caster<ENVIRONMENT extends IScratchEnvironment,FROM_TYPE, TO_TYPE> -
Field Summary
Fields inherited from interface com.petrolpark.core.scratch.IScratchClass
CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ENVIRONMENT extends IScratchEnvironment,TO_TYPE>
Optional<IScratchClass.Caster<ENVIRONMENT, Long, TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) com.mojang.serialization.Codec<Long> codec()net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Long>
-
Constructor Details
-
IntegerScratchClass
public IntegerScratchClass()
-
-
Method Details
-
codec
- Specified by:
codecin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
streamCodec
- Specified by:
streamCodecin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
createDefaultParameter
public ExpressionOrLiteralArgument.ExpressionOrLiteralParameter<IScratchEnvironment,Long> createDefaultParameter(String key) - Specified by:
createDefaultParameterin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
cast
public <ENVIRONMENT extends IScratchEnvironment,TO_TYPE> Optional<IScratchClass.Caster<ENVIRONMENT,Long, castTO_TYPE>> (IScratchClass<TO_TYPE, ?> toClass) - Specified by:
castin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
parse
- Specified by:
parsein interfaceIParseableScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-