Class BlockRegistries

java.lang.Object
org.geysermc.geyser.registry.BlockRegistries

public class BlockRegistries extends Object
Holds all the block registries in Geyser.
  • Field Details

    • BLOCKS

      public static final VersionedRegistry<BlockMappings> BLOCKS
      A versioned registry which holds BlockMappings for each version. These block mappings contain primarily Bedrock version-specific data.
    • BLOCK_STATES

      public static final ListRegistry<BlockState> BLOCK_STATES
      A registry which stores Java IDs to Java BlockStates, each with their specific state differences and a link to the overarching block.
    • COLLISIONS

      public static final ListRegistry<BlockCollision> COLLISIONS
      A mapped registry containing which holds block IDs to its BlockCollision.
    • JAVA_BLOCKS

      public static final ListRegistry<Block> JAVA_BLOCKS
      A registry which stores Java IDs to Block, containing miscellaneous information about blocks and their behavior in many cases.
    • JAVA_IDENTIFIER_TO_ID

      public static final MappedRegistry<String,Integer,it.unimi.dsi.fastutil.objects.Object2IntMap<String>> JAVA_IDENTIFIER_TO_ID
      A mapped registry containing the Java identifiers to IDs.
    • WATERLOGGED

      public static final SimpleRegistry<BitSet> WATERLOGGED
      A registry containing all the waterlogged blockstates. Properties.WATERLOGGED should not be relied on for two reasons: - Custom blocks - Seagrass, kelp, and bubble columns are assumed waterlogged and don't have a waterlogged property
    • INTERACTIVE

      public static final SimpleRegistry<BitSet> INTERACTIVE
      A registry containing all blockstates which are always interactive.
    • INTERACTIVE_MAY_BUILD

      public static final SimpleRegistry<BitSet> INTERACTIVE_MAY_BUILD
      A registry containing all blockstates which are interactive if the player has the may build permission.
    • CUSTOM_BLOCKS

      public static final ArrayRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData> CUSTOM_BLOCKS
      A registry containing all the custom blocks.
    • CUSTOM_BLOCK_STATE_OVERRIDES

      public static final MappedRegistry<Integer,org.geysermc.geyser.api.block.custom.CustomBlockState,it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.geysermc.geyser.api.block.custom.CustomBlockState>> CUSTOM_BLOCK_STATE_OVERRIDES
      A registry which stores Java Ids and the custom block state it should be replaced with.
    • NON_VANILLA_BLOCK_STATE_OVERRIDES

      public static final SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState,org.geysermc.geyser.api.block.custom.CustomBlockState> NON_VANILLA_BLOCK_STATE_OVERRIDES
      A registry which stores non vanilla java blockstates and the custom block state it should be replaced with.
    • CUSTOM_BLOCK_ITEM_OVERRIDES

      public static final SimpleMappedRegistry<String,org.geysermc.geyser.api.block.custom.CustomBlockData> CUSTOM_BLOCK_ITEM_OVERRIDES
      A registry which stores clean Java Ids and the custom block it should be replaced with in the context of items.
    • EXTENDED_COLLISION_BOXES

      public static final SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData,Set<Integer>> EXTENDED_COLLISION_BOXES
      A registry which stores Custom Block Data for extended collision boxes and the Java IDs of blocks that will have said extended collision boxes placed above them.
    • CUSTOM_SKULLS

      public static final SimpleMappedRegistry<String,CustomSkull> CUSTOM_SKULLS
      A registry which stores skin texture hashes to custom skull blocks.
  • Constructor Details

    • BlockRegistries

      public BlockRegistries()
  • Method Details

    • init

      public static void init()