Interface CustomBlockComponents
public interface CustomBlockComponents
This class is used to store components for a custom block or custom block permutation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a Builder for CustomBlockComponents@Nullable BoxComponentGets the collision box component Equivalent to "minecraft:collision_box"@Nullable FloatGets the destructible by mining component Equivalent to "minecraft:destructible_by_mining"@Nullable StringGets the display name component Equivalent to "minecraft:display_name"@Nullable Floatfriction()Gets the friction component Equivalent to "minecraft:friction"@Nullable GeometryComponentgeometry()Gets the geometry component Equivalent to "minecraft:geometry"@Nullable IntegerGets the light dampening component Equivalent to "minecraft:light_dampening"@Nullable IntegerGets the light emission component Equivalent to "minecraft:light_emission"@NonNull Map<String,MaterialInstance> Gets the material instances component Equivalent to "minecraft:material_instances"booleanplaceAir()Gets if the block should place only air Equivalent to setting a dummy event to run on "minecraft:on_player_placing"@Nullable List<PlacementConditions>Gets the placement filter component Equivalent to "minecraft:placement_filter"@Nullable BoxComponentGets the selection box component Equivalent to "minecraft:selection_box"tags()Gets the set of tags Equivalent to "tag:some_tag"@Nullable TransformationComponentGets the transformation component Equivalent to "minecraft:transformation"booleanunitCube()Deprecated.
-
Method Details
-
selectionBox
@Nullable BoxComponent selectionBox()Gets the selection box component Equivalent to "minecraft:selection_box"- Returns:
- The selection box.
-
collisionBox
@Nullable BoxComponent collisionBox()Gets the collision box component Equivalent to "minecraft:collision_box"- Returns:
- The collision box.
-
displayName
@Nullable String displayName()Gets the display name component Equivalent to "minecraft:display_name"- Returns:
- The display name.
-
geometry
@Nullable GeometryComponent geometry()Gets the geometry component Equivalent to "minecraft:geometry"- Returns:
- The geometry.
-
materialInstances
@NonNull Map<String,MaterialInstance> materialInstances()Gets the material instances component Equivalent to "minecraft:material_instances"- Returns:
- The material instances.
-
placementFilter
@Nullable List<PlacementConditions> placementFilter()Gets the placement filter component Equivalent to "minecraft:placement_filter"- Returns:
- The placement filter.
-
destructibleByMining
@Nullable Float destructibleByMining()Gets the destructible by mining component Equivalent to "minecraft:destructible_by_mining"- Returns:
- The destructible by mining value.
-
friction
@Nullable Float friction()Gets the friction component Equivalent to "minecraft:friction"- Returns:
- The friction value.
-
lightEmission
@Nullable Integer lightEmission()Gets the light emission component Equivalent to "minecraft:light_emission"- Returns:
- The light emission value.
-
lightDampening
@Nullable Integer lightDampening()Gets the light dampening component Equivalent to "minecraft:light_dampening"- Returns:
- The light dampening value.
-
transformation
@Nullable TransformationComponent transformation()Gets the transformation component Equivalent to "minecraft:transformation"- Returns:
- The transformation.
-
unitCube
Deprecated.Usegeometry()and compare with `minecraft:geometry.full_block` instead.Gets the unit cube component Equivalent to "minecraft:unit_cube"- Returns:
- The rotation.
-
placeAir
boolean placeAir()Gets if the block should place only air Equivalent to setting a dummy event to run on "minecraft:on_player_placing"- Returns:
- If the block should place only air.
-
tags
Gets the set of tags Equivalent to "tag:some_tag"- Returns:
- The set of tags.
-
builder
Create a Builder for CustomBlockComponents- Returns:
- A CustomBlockComponents Builder
-
geometry()and compare with `minecraft:geometry.full_block` instead.