Class RealScratchClass
java.lang.Object
com.petrolpark.core.scratch.classes.SimpleScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment,Double>>
com.petrolpark.core.scratch.classes.SimpleParseableScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment,Double>>
com.petrolpark.core.scratch.classes.RealScratchClass
- All Implemented Interfaces:
IByteBufScratchClass<Double,,ExpressionOrLiteralArgument<IScratchEnvironment, Double>> IParseableScratchClass<Double,,ExpressionOrLiteralArgument<IScratchEnvironment, Double>> IScratchClass<Double,,ExpressionOrLiteralArgument<IScratchEnvironment, Double>> IScratchClassType,ISyncedScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
public class RealScratchClass
extends SimpleParseableScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment,Double>>
implements IByteBufScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment,Double>>
-
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<Double, TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) com.mojang.serialization.Codec<Double> codec()fallback()net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Double> 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
-
RealScratchClass
public RealScratchClass()
-
-
Method Details
-
fallback
- Specified by:
fallbackin interfaceIScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-
codec
- Specified by:
codecin interfaceIScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-
streamCodec
- Specified by:
streamCodecin interfaceIByteBufScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>> - Specified by:
streamCodecin interfaceIScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-
createDefaultParameter
public ExpressionOrLiteralArgument.ExpressionOrLiteralParameter<IScratchEnvironment,Double> createDefaultParameter(String key) - Specified by:
createDefaultParameterin interfaceIScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-
cast
public <TO_TYPE> Optional<IScratchClass.Caster<Double,TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) - Specified by:
castin interfaceIScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-
parse
- Specified by:
parsein interfaceIParseableScratchClass<Double,ExpressionOrLiteralArgument<IScratchEnvironment, Double>>
-