Class GeyserCustomBlockState

java.lang.Object
org.geysermc.geyser.level.block.GeyserCustomBlockState
All Implemented Interfaces:
org.geysermc.geyser.api.block.custom.CustomBlockState

public final class GeyserCustomBlockState extends Object implements org.geysermc.geyser.api.block.custom.CustomBlockState
  • Constructor Details

    • GeyserCustomBlockState

      public GeyserCustomBlockState(org.geysermc.geyser.api.block.custom.CustomBlockData block, Map<String,Object> properties)
  • Method Details

    • block

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

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

      public <T> @NonNull T property(@NonNull String propertyName)
      Specified by:
      property in interface org.geysermc.geyser.api.block.custom.CustomBlockState
    • properties

      public @NonNull Map<String,Object> properties()
      Specified by:
      properties in interface org.geysermc.geyser.api.block.custom.CustomBlockState
    • getBlock

      public org.geysermc.geyser.api.block.custom.CustomBlockData getBlock()
    • getProperties

      public Map<String,Object> getProperties()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object