Class BlockPosScratchClass

java.lang.Object
com.petrolpark.core.scratch.classes.SimpleScratchClass<net.minecraft.core.BlockPos>
com.petrolpark.core.scratch.classes.BlockPosScratchClass
All Implemented Interfaces:
IScratchClass<net.minecraft.core.BlockPos,ExpressionArgument<IScratchEnvironment,net.minecraft.core.BlockPos,?>>

public class BlockPosScratchClass extends SimpleScratchClass<net.minecraft.core.BlockPos>
  • Constructor Details

    • BlockPosScratchClass

      public BlockPosScratchClass()
  • Method Details

    • codec

      public com.mojang.serialization.Codec<net.minecraft.core.BlockPos> codec()
    • streamCodec

      public net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.core.BlockPos> streamCodec()
    • cast

      public <ENVIRONMENT extends IScratchEnvironment, TO_TYPE> Optional<IScratchClass.Caster<ENVIRONMENT,net.minecraft.core.BlockPos,TO_TYPE>> cast(IScratchClass<TO_TYPE,?> toClass)