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
  • 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