Package org.geysermc.geyser.level.block
Class GeyserCustomBlockData.Builder
java.lang.Object
org.geysermc.geyser.level.block.GeyserCustomBlockData.Builder
- All Implemented Interfaces:
org.geysermc.geyser.api.block.custom.CustomBlockData.Builder
- Direct Known Subclasses:
GeyserNonVanillaCustomBlockData.Builder
- Enclosing class:
- GeyserCustomBlockData
public static class GeyserCustomBlockData.Builder
extends Object
implements org.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanProperty(@NonNull String propertyName) org.geysermc.geyser.api.block.custom.CustomBlockDatabuild()components(@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components) creativeCategory(@Nullable org.geysermc.geyser.api.util.CreativeCategory creativeCategory) creativeGroup(@Nullable String creativeGroup) includedInCreativeInventory(boolean includedInCreativeInventory) intProperty(@NonNull String propertyName, List<Integer> values) permutations(@NonNull List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation> permutations) stringProperty(@NonNull String propertyName, List<String> values)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
- Specified by:
namein interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
includedInCreativeInventory
public GeyserCustomBlockData.Builder includedInCreativeInventory(boolean includedInCreativeInventory) - Specified by:
includedInCreativeInventoryin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
creativeCategory
public GeyserCustomBlockData.Builder creativeCategory(@Nullable org.geysermc.geyser.api.util.CreativeCategory creativeCategory) - Specified by:
creativeCategoryin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
creativeGroup
- Specified by:
creativeGroupin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
components
public GeyserCustomBlockData.Builder components(@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components) - Specified by:
componentsin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
booleanProperty
- Specified by:
booleanPropertyin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
intProperty
public GeyserCustomBlockData.Builder intProperty(@NonNull String propertyName, List<Integer> values) - Specified by:
intPropertyin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
stringProperty
public GeyserCustomBlockData.Builder stringProperty(@NonNull String propertyName, List<String> values) - Specified by:
stringPropertyin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
permutations
public GeyserCustomBlockData.Builder permutations(@NonNull List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation> permutations) - Specified by:
permutationsin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-
build
public org.geysermc.geyser.api.block.custom.CustomBlockData build()- Specified by:
buildin interfaceorg.geysermc.geyser.api.block.custom.CustomBlockData.Builder
-