Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EventHandling
- {
- public enum EventPriority
- { //I borrowed this from Jabelar's tutorials might not need this, but I don't know yet.
- /*Priority of event listeners, listeners will be sorted with respect to this priority level.
- *
- * Note:
- * Due to using a ArrayList in the ListenerList,
- * these need to stay in a contiguous index starting at 0. {Default ordinal}
- */
- HIGHEST, //First to execute
- HIGH,
- NORMAL,
- LOW,
- LOWEST //Last to execute
- }
- @SubscribeEvent
- public void input(InputEvent event)
- /* Not sure if I'm going to need anything inside this, it seemed like it would be useful
- *
- */
- {
- }
- @SubscribeEvent
- public void mouse(MouseInputEvent event)
- /* when something is clicked I presume, this is going to be a bit complex
- *
- */
- {
- }
- @SubscribeEvent
- public void onKey(KeyInputEvent event)
- /* this will have some effect when a player pushes a key, perhaps not needed?
- *
- */
- {
- Minecraft mc = Minecraft.getMinecraft();
- if(SkillCraftKeyBinding.SkillGui.isPressed())
- {
- mc.displayGuiScreen(new Gui1());
- }
- }
- @SubscribeEvent
- public void EntityConstruction(EntityEvent.EntityConstructing event)
- /* this is going to have an effect, for swaping dimensions so everything stays syncronized
- * or..logging into the game world I'm and idiot
- *
- */
- {
- if(event.entity instanceof EntityPlayer && ExtendedPlayer.get((EntityPlayer) event.entity) == null)
- ExtendedPlayer.register((EntityPlayer)event.entity);
- }
- @SubscribeEvent
- public void MobDeath(LivingDeathEvent event)
- /*this is going to have something happen when a player, or Mob dies, like..drop held item
- *
- */
- {
- }
- @SubscribeEvent
- public void PlayerJoins(EntityJoinWorldEvent event)
- /* this is going to do something when a player Joins the world, IE give a book?
- *
- */
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement