Class FlexibleEnvironmentScratchBlockType<BASE_ENVIRONMENT extends IScratchEnvironment,BLOCK extends IScratchBlock<?,?,?>>
java.lang.Object
com.petrolpark.core.scratch.symbol.block.FlexibleEnvironmentScratchBlockType<BASE_ENVIRONMENT,BLOCK>
- All Implemented Interfaces:
IScratchBlock.Type<BLOCK>,IScratchSymbol.Type<BLOCK>
public class FlexibleEnvironmentScratchBlockType<BASE_ENVIRONMENT extends IScratchEnvironment,BLOCK extends IScratchBlock<?,?,?>>
extends Object
implements IScratchBlock.Type<BLOCK>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ContextualMapCodec<IScratchEnvironment.Type<?>, BLOCK> protected final Function<IScratchEnvironment.Type<?>, BLOCK> protected final ContextualStreamCodec<io.netty.buffer.ByteBuf, IScratchEnvironment.Type<?>, BLOCK> -
Constructor Summary
ConstructorsConstructorDescriptionFlexibleEnvironmentScratchBlockType(Class<BASE_ENVIRONMENT> environmentClass, Function<IScratchEnvironment.Type<?>, BLOCK> factory) -
Method Summary
Modifier and TypeMethodDescriptioncodec()ContextualStreamCodec<io.netty.buffer.ByteBuf, IScratchEnvironment.Type<?>, BLOCK>
-
Field Details
-
factory
-
codec
protected final ContextualMapCodec<IScratchEnvironment.Type<?>,BLOCK extends IScratchBlock<?, codec?, ?>> -
streamCodec
protected final ContextualStreamCodec<io.netty.buffer.ByteBuf,IScratchEnvironment.Type<?>, streamCodecBLOCK extends IScratchBlock<?, ?, ?>>
-
-
Constructor Details
-
FlexibleEnvironmentScratchBlockType
public FlexibleEnvironmentScratchBlockType(Class<BASE_ENVIRONMENT> environmentClass, Function<IScratchEnvironment.Type<?>, BLOCK> factory)
-
-
Method Details
-
codec
- Specified by:
codecin interfaceIScratchSymbol.Type<BASE_ENVIRONMENT extends IScratchEnvironment>
-
streamCodec
public ContextualStreamCodec<io.netty.buffer.ByteBuf,IScratchEnvironment.Type<?>, streamCodec()BLOCK> - Specified by:
streamCodecin interfaceIScratchSymbol.Type<BASE_ENVIRONMENT extends IScratchEnvironment>
-