Interface ICommonBuilding
- All Known Subinterfaces:
IBuilding,IBuildingDeliveryman,IBuildingView,IBuildingWorker,IBuildingWorkerView,IGuardBuilding,IMysticalSite,ITownHall,ITownHallView,IWareHouse
- All Known Implementing Classes:
AbstractBuilding,AbstractBuildingBuilderView,AbstractBuildingContainer,AbstractBuildingGuards,AbstractBuildingGuards.View,AbstractBuildingStructureBuilder,AbstractBuildingView,AbstractSchematicProvider,BuildingAlchemist,BuildingArchery,BuildingBaker,BuildingBarracks,BuildingBarracks.View,BuildingBarracksTower,BuildingBeekeeper,BuildingBeekeeper.View,BuildingBlacksmith,BuildingBuilder,BuildingBuilder.View,BuildingChickenHerder,BuildingCombatAcademy,BuildingComposter,BuildingConcreteMixer,BuildingCook,BuildingCook.View,BuildingCowboy,BuildingCrusher,BuildingDeliveryman,BuildingDyer,BuildingEnchanter,BuildingFarmer,BuildingFisherman,BuildingFletcher,BuildingFlorist,BuildingGateHouse,BuildingGateHouse.View,BuildingGlassblower,BuildingGraveyard,BuildingGuardTower,BuildingGuardTower.View,BuildingHospital,BuildingKitchen,BuildingLibrary,BuildingLumberjack,BuildingLumberjack.View,BuildingMechanic,BuildingMiner,BuildingMysticalSite,BuildingMysticalSite.View,BuildingNetherWorker,BuildingPlantation,BuildingRabbitHutch,BuildingSawmill,BuildingSchool,BuildingShepherd,BuildingSifter,BuildingSmeltery,BuildingStable,BuildingStonemason,BuildingStoneSmeltery,BuildingSwineHerder,BuildingTownHall,BuildingTownHall.View,BuildingUniversity,BuildingWareHouse,BuildingWareHouse.View,DefaultBuildingInstance,EmptyView,HomeBuildingModule.View,LivingBuildingView,PostBox,PostBox.View,Stash,TavernBuildingModule.View
public interface ICommonBuilding
Common building interface for both client & server.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the current level of the building.default intGet the equivalent building level for equipment, etc.Get the Building typeGet the colony from a building.List<net.minecraft.core.BlockPos>Get the BlockPos of the Containers.@NotNull net.minecraft.core.BlockPosGets the location of this building.intGet the prestige value of the building.
-
Method Details
-
getBuildingLevel
int getBuildingLevel()Get the current level of the building.- Returns:
- AbstractBuilding current level.
-
getPosition
@NotNull @NotNull net.minecraft.core.BlockPos getPosition()Gets the location of this building.- Returns:
- A BlockPos, where this building is.
-
getBuildingType
BuildingEntry getBuildingType()Get the Building type- Returns:
- building type
-
getBuildingLevelEquivalent
default int getBuildingLevelEquivalent()Get the equivalent building level for equipment, etc. Normally it's just the building level, but for buildings with fewer levels it can be 1,3,5 for example.- Returns:
- the adjusted level.
-
getContainers
List<net.minecraft.core.BlockPos> getContainers()Get the BlockPos of the Containers.- Returns:
- containerList.
-
getColony
IColony getColony()Get the colony from a building.- Returns:
- the colony it belongs to.
-
getPrestige
int getPrestige()Get the prestige value of the building.- Returns:
- the prestige value.
-