Class GeyserCustomBlockData

java.lang.Object
org.geysermc.geyser.level.block.GeyserCustomBlockData
All Implemented Interfaces:
org.geysermc.geyser.api.block.custom.CustomBlockData
Direct Known Subclasses:
GeyserNonVanillaCustomBlockData

public class GeyserCustomBlockData extends Object implements org.geysermc.geyser.api.block.custom.CustomBlockData
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.geysermc.geyser.api.block.custom.CustomBlockData

    org.geysermc.geyser.api.block.custom.CustomBlockData.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserCustomBlockData​(String name, boolean includedInCreativeInventory, org.geysermc.geyser.api.util.CreativeCategory creativeCategory, String creativeGroup, org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components, Map<String,​org.geysermc.geyser.api.block.custom.property.CustomBlockProperty<?>> properties, List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation> permutations, Map<String,​Object> defaultProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.geysermc.geyser.api.block.custom.CustomBlockState.Builder
     
    org.geysermc.geyser.api.block.custom.component.CustomBlockComponents
     
    @Nullable org.geysermc.geyser.api.util.CreativeCategory
     
    @Nullable String
     
    @NonNull org.geysermc.geyser.api.block.custom.CustomBlockState
     
    @NonNull String
     
    boolean
     
    @NonNull String
     
    @NonNull List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation>
     
    @NonNull Map<String,​org.geysermc.geyser.api.block.custom.property.CustomBlockProperty<?>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeyserCustomBlockData

      public GeyserCustomBlockData(String name, boolean includedInCreativeInventory, org.geysermc.geyser.api.util.CreativeCategory creativeCategory, String creativeGroup, org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components, Map<String,​org.geysermc.geyser.api.block.custom.property.CustomBlockProperty<?>> properties, List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation> permutations, Map<String,​Object> defaultProperties)
  • Method Details

    • name

      public @NonNull String name()
      Specified by:
      name in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • identifier

      public @NonNull String identifier()
      Specified by:
      identifier in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • includedInCreativeInventory

      public boolean includedInCreativeInventory()
      Specified by:
      includedInCreativeInventory in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • creativeCategory

      public @Nullable org.geysermc.geyser.api.util.CreativeCategory creativeCategory()
      Specified by:
      creativeCategory in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • creativeGroup

      public @Nullable String creativeGroup()
      Specified by:
      creativeGroup in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • components

      public org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components()
      Specified by:
      components in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • properties

      public @NonNull Map<String,​org.geysermc.geyser.api.block.custom.property.CustomBlockProperty<?>> properties()
      Specified by:
      properties in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • permutations

      public @NonNull List<org.geysermc.geyser.api.block.custom.CustomBlockPermutation> permutations()
      Specified by:
      permutations in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • defaultBlockState

      public @NonNull org.geysermc.geyser.api.block.custom.CustomBlockState defaultBlockState()
      Specified by:
      defaultBlockState in interface org.geysermc.geyser.api.block.custom.CustomBlockData
    • blockStateBuilder

      public @NonNull org.geysermc.geyser.api.block.custom.CustomBlockState.Builder blockStateBuilder()
      Specified by:
      blockStateBuilder in interface org.geysermc.geyser.api.block.custom.CustomBlockData