Class BlockPosScratchClass
java.lang.Object
com.petrolpark.core.scratch.classes.SimpleScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment,net.minecraft.core.BlockPos>>
com.petrolpark.core.scratch.classes.ExpressionDefaultParameterSimpleScratchClass<net.minecraft.core.BlockPos>
com.petrolpark.core.scratch.classes.BlockPosScratchClass
- All Implemented Interfaces:
IByteBufScratchClass<net.minecraft.core.BlockPos,,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>> IScratchClass<net.minecraft.core.BlockPos,,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>> IScratchClassType,ISyncedScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>>
public class BlockPosScratchClass
extends ExpressionDefaultParameterSimpleScratchClass<net.minecraft.core.BlockPos>
implements IByteBufScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment,net.minecraft.core.BlockPos>>
-
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<net.minecraft.core.BlockPos, TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) com.mojang.serialization.Codec<net.minecraft.core.BlockPos> codec()net.minecraft.core.BlockPosfallback()net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, net.minecraft.core.BlockPos> Methods inherited from class com.petrolpark.core.scratch.classes.ExpressionDefaultParameterSimpleScratchClass
createDefaultParameterMethods 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
createDefaultParameter, getTypeMethods inherited from interface com.petrolpark.core.scratch.classes.ISyncedScratchClass
asSynced
-
Constructor Details
-
BlockPosScratchClass
public BlockPosScratchClass()
-
-
Method Details
-
fallback
public net.minecraft.core.BlockPos fallback()- Specified by:
fallbackin interfaceIScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>>
-
codec
public com.mojang.serialization.Codec<net.minecraft.core.BlockPos> codec()- Specified by:
codecin interfaceIScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.core.BlockPos> streamCodec()- Specified by:
streamCodecin interfaceIByteBufScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>> - Specified by:
streamCodecin interfaceIScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>>
-
cast
public <TO_TYPE> Optional<IScratchClass.Caster<net.minecraft.core.BlockPos,TO_TYPE>> cast(IScratchClass<TO_TYPE, ?> toClass) - Specified by:
castin interfaceIScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment, net.minecraft.core.BlockPos>>
-