Class GeyserCustomBlockComponents.Builder

java.lang.Object
org.geysermc.geyser.level.block.GeyserCustomBlockComponents.Builder
All Implemented Interfaces:
org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
Enclosing class:
GeyserCustomBlockComponents

public static class GeyserCustomBlockComponents.Builder extends Object implements org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
  • Field Details

    • selectionBox

      protected org.geysermc.geyser.api.block.custom.component.BoxComponent selectionBox
    • collisionBoxes

      protected @NonNull Set<org.geysermc.geyser.api.block.custom.component.BoxComponent> collisionBoxes
    • displayName

      protected String displayName
    • geometry

      protected org.geysermc.geyser.api.block.custom.component.GeometryComponent geometry
    • materialInstances

      protected final it.unimi.dsi.fastutil.objects.Object2ObjectMap<String,org.geysermc.geyser.api.block.custom.component.MaterialInstance> materialInstances
    • placementFilter

      protected List<org.geysermc.geyser.api.block.custom.component.PlacementConditions> placementFilter
    • destructibleByMining

      protected Float destructibleByMining
    • friction

      protected Float friction
    • lightEmission

      protected Integer lightEmission
    • lightDampening

      protected Integer lightDampening
    • transformation

      protected org.geysermc.geyser.api.block.custom.component.TransformationComponent transformation
    • unitCube

      protected boolean unitCube
    • placeAir

      protected boolean placeAir
    • tags

      protected Set<String> tags
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • selectionBox

      public GeyserCustomBlockComponents.Builder selectionBox(@Nullable org.geysermc.geyser.api.block.custom.component.BoxComponent selectionBox)
      Specified by:
      selectionBox in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • collisionBox

      public GeyserCustomBlockComponents.Builder collisionBox(@Nullable org.geysermc.geyser.api.block.custom.component.BoxComponent collisionBox)
      Specified by:
      collisionBox in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • collisionBoxes

      public org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder collisionBoxes(@Nullable org.geysermc.geyser.api.block.custom.component.BoxComponent... collisionBoxes)
      Specified by:
      collisionBoxes in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • collisionBoxes

      public org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder collisionBoxes(@Nullable Collection<org.geysermc.geyser.api.block.custom.component.BoxComponent> collisionBoxes)
      Specified by:
      collisionBoxes in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • displayName

      public GeyserCustomBlockComponents.Builder displayName(String displayName)
      Specified by:
      displayName in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • geometry

      public GeyserCustomBlockComponents.Builder geometry(org.geysermc.geyser.api.block.custom.component.GeometryComponent geometry)
      Specified by:
      geometry in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • materialInstance

      public GeyserCustomBlockComponents.Builder materialInstance(@NonNull String name, @NonNull org.geysermc.geyser.api.block.custom.component.MaterialInstance materialInstance)
      Specified by:
      materialInstance in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • placementFilter

      public GeyserCustomBlockComponents.Builder placementFilter(List<org.geysermc.geyser.api.block.custom.component.PlacementConditions> placementFilter)
      Specified by:
      placementFilter in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • destructibleByMining

      public GeyserCustomBlockComponents.Builder destructibleByMining(Float destructibleByMining)
      Specified by:
      destructibleByMining in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • friction

      public GeyserCustomBlockComponents.Builder friction(Float friction)
      Specified by:
      friction in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • lightEmission

      public GeyserCustomBlockComponents.Builder lightEmission(Integer lightEmission)
      Specified by:
      lightEmission in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • lightDampening

      public GeyserCustomBlockComponents.Builder lightDampening(Integer lightDampening)
      Specified by:
      lightDampening in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • transformation

      public GeyserCustomBlockComponents.Builder transformation(org.geysermc.geyser.api.block.custom.component.TransformationComponent transformation)
      Specified by:
      transformation in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • unitCube

      public GeyserCustomBlockComponents.Builder unitCube(boolean unitCube)
      Specified by:
      unitCube in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • placeAir

      public GeyserCustomBlockComponents.Builder placeAir(boolean placeAir)
      Specified by:
      placeAir in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • tags

      public GeyserCustomBlockComponents.Builder tags(@Nullable Set<String> tags)
      Specified by:
      tags in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder
    • build

      public org.geysermc.geyser.api.block.custom.component.CustomBlockComponents build()
      Specified by:
      build in interface org.geysermc.geyser.api.block.custom.component.CustomBlockComponents.Builder