Class IntegerScratchClass
java.lang.Object
com.petrolpark.core.scratch.classes.SimpleScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment,Long>>
com.petrolpark.core.scratch.classes.SimpleParseableScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment,Long>>
com.petrolpark.core.scratch.classes.IntegerScratchClass
- All Implemented Interfaces:
IByteBufScratchClass<Long,,ExpressionOrLiteralArgument<IScratchEnvironment, Long>> IParseableScratchClass<Long,,ExpressionOrLiteralArgument<IScratchEnvironment, Long>> IScratchClass<Long,,ExpressionOrLiteralArgument<IScratchEnvironment, Long>> IScratchClassType,ISyncedScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
public class IntegerScratchClass
extends SimpleParseableScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment,Long>>
implements IByteBufScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment,Long>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.core.scratch.classes.IScratchClass
IScratchClass.Caster<FROM_TYPE,TO_TYPE> -
Field Summary
Fields inherited from class com.petrolpark.core.scratch.classes.SimpleScratchClass
codec, streamCodecFields inherited from interface com.petrolpark.core.scratch.classes.IScratchClass
CODEC, STREAM_CODEC, TYPED_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<TO_TYPE> Optional<IScratchClass.Caster<Long, TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) com.mojang.serialization.Codec<Long> codec()fallback()net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Long> Methods inherited from class com.petrolpark.core.scratch.classes.SimpleScratchClass
getType, scratchClassCodec, scratchClassStreamCodecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.core.scratch.classes.IScratchClass
getTypeMethods inherited from interface com.petrolpark.core.scratch.classes.ISyncedScratchClass
asSynced
-
Constructor Details
-
IntegerScratchClass
public IntegerScratchClass()
-
-
Method Details
-
fallback
- Specified by:
fallbackin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
codec
- Specified by:
codecin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
streamCodec
- Specified by:
streamCodecin interfaceIByteBufScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>> - 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 <TO_TYPE> Optional<IScratchClass.Caster<Long,TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) - Specified by:
castin interfaceIScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-
parse
- Specified by:
parsein interfaceIParseableScratchClass<Long,ExpressionOrLiteralArgument<IScratchEnvironment, Long>>
-