Interface IBuildingBrowsableBlock

All Known Implementing Classes:
AbstractBlockHut, BlockHutAlchemist, BlockHutArchery, BlockHutBaker, BlockHutBarracks, BlockHutBarracksTower, BlockHutBeekeeper, BlockHutBlacksmith, BlockHutBuilder, BlockHutChickenHerder, BlockHutCitizen, BlockHutCombatAcademy, BlockHutComposter, BlockHutConcreteMixer, BlockHutCook, BlockHutCowboy, BlockHutCrusher, BlockHutDeliveryman, BlockHutDyer, BlockHutEnchanter, BlockHutFarmer, BlockHutFisherman, BlockHutFletcher, BlockHutFlorist, BlockHutGateHouse, BlockHutGlassblower, BlockHutGraveyard, BlockHutGuardTower, BlockHutHospital, BlockHutKitchen, BlockHutLibrary, BlockHutLumberjack, BlockHutMechanic, BlockHutMiner, BlockHutMysticalSite, BlockHutNetherWorker, BlockHutPlantation, BlockHutRabbitHutch, BlockHutSawmill, BlockHutSchool, BlockHutShepherd, BlockHutSifter, BlockHutSmeltery, BlockHutStable, BlockHutStonemason, BlockHutStoneSmeltery, BlockHutSwineHerder, BlockHutTavern, BlockHutTownHall, BlockHutUniversity, BlockHutWareHouse, BlockPlantationField, BlockScarecrow, LargeQuarry, MediumQuarry, SimpleQuarry

public interface IBuildingBrowsableBlock
Right-clicking this block in the air triggers the building browser window interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    shouldBrowseBuildings(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickItem event)
    Return false if you want to prevent the building search behaviour for some reason.
  • Method Details

    • shouldBrowseBuildings

      default boolean shouldBrowseBuildings(@NotNull net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.RightClickItem event)
      Return false if you want to prevent the building search behaviour for some reason. Client-side only.