Advertisement
TitanChase

Untitled

Mar 11th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class CapabilityEventHandler
  2. {
  3. public static final ResourceLocation FACTIONCAP = ResourceLocationHelper.getResourceLocation(References.Mod.Id, "factioncap");
  4.  
  5. @SubscribeEvent
  6. public static void AttachCapability(AttachCapabilitiesEvent<Entity> event)
  7. {
  8. if (event.getObject() instanceof EntityPlayer)
  9. {
  10. event.addCapability(FACTIONCAP, new FactionCapabilityProvider());
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement