Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CapabilityEventHandler
- {
- public static final ResourceLocation FACTIONCAP = ResourceLocationHelper.getResourceLocation(References.Mod.Id, "factioncap");
- @SubscribeEvent
- public static void AttachCapability(AttachCapabilitiesEvent<Entity> event)
- {
- if (event.getObject() instanceof EntityPlayer)
- {
- event.addCapability(FACTIONCAP, new FactionCapabilityProvider());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement