public abstract class BlockBuilderAPI extends RegistryEntryBuilder<BlockAPI<?>>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlockBuilderAPI.BlockEntityCreator |
| Modifier and Type | Field and Description |
|---|---|
protected BlockBuilderAPI.BlockEntityCreator |
blockEntityCreator |
protected java.util.Map<BlockPropertyAPI<?,?>,java.lang.Comparable<?>> |
defaultProperties |
protected java.util.Map<java.lang.String,java.lang.Integer> |
effectiveTools |
protected MaterialAPI<?> |
material |
protected MaterialColorAPI<?> |
materialColor |
protected java.util.function.Function<TILItemUseContext,ActionResult> |
useFunc |
DEFAULT_MINOR_VERSION, NAMED_ENV, registryName, SRG_ENV, VERSION| Modifier | Constructor and Description |
|---|---|
protected |
BlockBuilderAPI(@Nullable BlockBuilderAPI parent) |
| Modifier and Type | Method and Description |
|---|---|
<V extends java.lang.Comparable<V>> |
addDefaultProperty(BlockPropertyAPI<?,V> property,
V value) |
BlockBuilderAPI |
addEffectiveTool(java.lang.String tool,
int tier) |
<V extends java.lang.Comparable<V>> |
buildDefaultProperty(BlockStateAPI<?> state,
BlockPropertyAPI<?,V> property,
java.lang.Comparable<?> value) |
BlockProperties |
buildProperties() |
@Nullable java.util.function.Function<BlockStateAPI<?>,BlockStateAPI<?>> |
defaultStateBuilder() |
BlockBuilderAPI |
setBlockEntityCreator(BlockBuilderAPI.BlockEntityCreator creator) |
BlockBuilderAPI |
setMaterial(MaterialAPI<?> material) |
BlockBuilderAPI |
setMaterialColor(MaterialColorAPI<?> color) |
BlockBuilderAPI |
setRegistryName(ResourceLocationAPI<?> name) |
BlockBuilderAPI |
setUseFunc(java.util.function.Function<TILItemUseContext,ActionResult> func) |
build, findAndInitializeForVersion, findAndInitializeForVersion, getClassForVersionprotected BlockBuilderAPI.BlockEntityCreator blockEntityCreator
protected java.util.Map<BlockPropertyAPI<?,?>,java.lang.Comparable<?>> defaultProperties
protected java.util.Map<java.lang.String,java.lang.Integer> effectiveTools
protected MaterialAPI<?> material
protected MaterialColorAPI<?> materialColor
protected java.util.function.Function<TILItemUseContext,ActionResult> useFunc
protected BlockBuilderAPI(@Nullable
@Nullable BlockBuilderAPI parent)
public <V extends java.lang.Comparable<V>> BlockBuilderAPI addDefaultProperty(BlockPropertyAPI<?,V> property, V value)
public BlockBuilderAPI addEffectiveTool(java.lang.String tool, int tier)
public <V extends java.lang.Comparable<V>> BlockStateAPI<?> buildDefaultProperty(BlockStateAPI<?> state, BlockPropertyAPI<?,V> property, java.lang.Comparable<?> value)
public BlockProperties buildProperties()
@Nullable public @Nullable java.util.function.Function<BlockStateAPI<?>,BlockStateAPI<?>> defaultStateBuilder()
public BlockBuilderAPI setBlockEntityCreator(BlockBuilderAPI.BlockEntityCreator creator)
public BlockBuilderAPI setMaterial(MaterialAPI<?> material)
public BlockBuilderAPI setMaterialColor(MaterialColorAPI<?> color)
public BlockBuilderAPI setRegistryName(ResourceLocationAPI<?> name)
setRegistryName in class RegistryEntryBuilder<BlockAPI<?>>public BlockBuilderAPI setUseFunc(java.util.function.Function<TILItemUseContext,ActionResult> func)