Search in sources :

Example 26 with IColonyView

use of com.minecolonies.api.colony.IColonyView in project minecolonies by ldtteam.

the class EventListener method onColonyViewUpdated.

@SubscribeEvent
public void onColonyViewUpdated(@NotNull final ColonyViewUpdatedEvent event) {
    final IColonyView colony = event.getColony();
    final Set<BlockPos> graves = colony.getGraveManager().getGraves().keySet();
    ColonyDeathpoints.updateGraves(this.jmap, colony, graves);
}
Also used : BlockPos(net.minecraft.util.math.BlockPos) IColonyView(com.minecolonies.api.colony.IColonyView) SubscribeEvent(net.minecraftforge.eventbus.api.SubscribeEvent)

Aggregations

IColonyView (com.minecolonies.api.colony.IColonyView)26 BlockPos (net.minecraft.util.math.BlockPos)14 IColonyManager (com.minecolonies.api.colony.IColonyManager)8 ItemStack (net.minecraft.item.ItemStack)8 CompoundNBT (net.minecraft.nbt.CompoundNBT)8 World (net.minecraft.world.World)8 NotNull (org.jetbrains.annotations.NotNull)8 PlacementSettings (com.ldtteam.structurize.util.PlacementSettings)6 IBuildingView (com.minecolonies.api.colony.buildings.views.IBuildingView)6 java.util (java.util)6 Minecraft (net.minecraft.client.Minecraft)6 Nullable (org.jetbrains.annotations.Nullable)6 LoadOnlyStructureHandler (com.minecolonies.api.util.LoadOnlyStructureHandler)5 Pane (com.ldtteam.blockout.Pane)4 StructureName (com.ldtteam.structurize.management.StructureName)4 SchematicRequestMessage (com.ldtteam.structurize.network.messages.SchematicRequestMessage)4 LanguageHandler (com.ldtteam.structurize.util.LanguageHandler)4 MinecoloniesAPIProxy (com.minecolonies.api.MinecoloniesAPIProxy)4 Constants (com.minecolonies.api.util.constant.Constants)3 MutableChunkPos (com.minecolonies.coremod.util.MutableChunkPos)3