Search in sources :

Example 1 with DepositCapProvider

use of com.oitsjustjose.geolosys.common.world.capability.DepositCapProvider in project Geolosys by oitsjustjose.

the class Geolosys method attachCap.

@SubscribeEvent
public void attachCap(AttachCapabilitiesEvent<World> event) {
    event.addCapability(new ResourceLocation(Constants.MODID, "pluton"), new DepositCapProvider());
    String dimName = event.getObject().getDimensionKey().getLocation().toString();
    LOGGER.info("Geolosys capability attached for {}", dimName);
}
Also used : DepositCapProvider(com.oitsjustjose.geolosys.common.world.capability.DepositCapProvider) ResourceLocation(net.minecraft.util.ResourceLocation) SubscribeEvent(net.minecraftforge.eventbus.api.SubscribeEvent)

Aggregations

DepositCapProvider (com.oitsjustjose.geolosys.common.world.capability.DepositCapProvider)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1