Interface CustomBlockData
- All Known Subinterfaces:
NonVanillaCustomBlockData
public interface CustomBlockData
This class is used to store data for a custom block.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NonNull CustomBlockState.BuilderGets a builder for a custom block statestatic CustomBlockData.Builderbuilder()Create a Builder for CustomBlockData@Nullable CustomBlockComponentsGets the components of the custom block@Nullable CreativeCategoryGets the block's creative category, or tab id.@Nullable StringGets the block's creative group.@NonNull CustomBlockStateGets the custom block's default block state@NonNull StringGets the identifier of the custom blockbooleanGets if the custom block is included in the creative inventory@NonNull Stringname()Gets the name of the custom block@NonNull List<CustomBlockPermutation> Gets the list of the custom block's permutations@NonNull Map<String, CustomBlockProperty<?>> Gets the custom block's map of block property names to CustomBlockProperty objects
-
Method Details
-
name
@NonNull String name()Gets the name of the custom block- Returns:
- The name of the custom block.
-
identifier
@NonNull String identifier()Gets the identifier of the custom block- Returns:
- The identifier of the custom block.
-
includedInCreativeInventory
boolean includedInCreativeInventory()Gets if the custom block is included in the creative inventory- Returns:
- If the custom block is included in the creative inventory.
-
creativeCategory
@Nullable CreativeCategory creativeCategory()Gets the block's creative category, or tab id.- Returns:
- the block's creative category
-
creativeGroup
@Nullable String creativeGroup()Gets the block's creative group.- Returns:
- the block's creative group
-
components
@Nullable CustomBlockComponents components()Gets the components of the custom block- Returns:
- The components of the custom block.
-
properties
@NonNull Map<String,CustomBlockProperty<?>> properties()Gets the custom block's map of block property names to CustomBlockProperty objects- Returns:
- The custom block's map of block property names to CustomBlockProperty objects.
-
permutations
@NonNull List<CustomBlockPermutation> permutations()Gets the list of the custom block's permutations- Returns:
- The permutations of the custom block.
-
defaultBlockState
@NonNull CustomBlockState defaultBlockState()Gets the custom block's default block state- Returns:
- The default block state of the custom block.
-
blockStateBuilder
@NonNull CustomBlockState.Builder blockStateBuilder()Gets a builder for a custom block state- Returns:
- The builder for a custom block state.
-
builder
Create a Builder for CustomBlockData- Returns:
- A CustomBlockData Builder
-