{"action":"created","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3506","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3506/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3506/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3506/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3506","id":193389770,"number":3506,"title":"[1.11] Allowed CanUpdate event to deny updates","user":{"login":"Asweez","id":8517782,"avatar_url":"https://avatars.githubusercontent.com/u/8517782?v=3","gravatar_id":"","url":"https://api.github.com/users/Asweez","html_url":"https://github.com/Asweez","followers_url":"https://api.github.com/users/Asweez/followers","following_url":"https://api.github.com/users/Asweez/following{/other_user}","gists_url":"https://api.github.com/users/Asweez/gists{/gist_id}","starred_url":"https://api.github.com/users/Asweez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asweez/subscriptions","organizations_url":"https://api.github.com/users/Asweez/orgs","repos_url":"https://api.github.com/users/Asweez/repos","events_url":"https://api.github.com/users/Asweez/events{/privacy}","received_events_url":"https://api.github.com/users/Asweez/received_events","type":"User","site_admin":false},"labels":[{"id":324959623,"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/BreakingChange","name":"BreakingChange","color":"f7c6c7","default":false},{"id":306653555,"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/Feature","name":"Feature","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-12-05T00:49:16Z","updated_at":"2016-12-07T05:30:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/3506","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3506","diff_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3506.diff","patch_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3506.patch"},"body":"Allowed CanUpdate event to be called whenever an entity tries to\r\nupdate, not only when Minecraft decides that it shouldn’t. Also allowed\r\nCanUpdate to deny updates instead of just allowing them."},"comment":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/comments/265359822","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/3506#issuecomment-265359822","issue_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/3506","id":265359822,"user":{"login":"mezz","id":916092,"avatar_url":"https://avatars.githubusercontent.com/u/916092?v=3","gravatar_id":"","url":"https://api.github.com/users/mezz","html_url":"https://github.com/mezz","followers_url":"https://api.github.com/users/mezz/followers","following_url":"https://api.github.com/users/mezz/following{/other_user}","gists_url":"https://api.github.com/users/mezz/gists{/gist_id}","starred_url":"https://api.github.com/users/mezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezz/subscriptions","organizations_url":"https://api.github.com/users/mezz/orgs","repos_url":"https://api.github.com/users/mezz/repos","events_url":"https://api.github.com/users/mezz/events{/privacy}","received_events_url":"https://api.github.com/users/mezz/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T05:30:59Z","updated_at":"2016-12-07T05:30:59Z","body":"If you just want to slow down their AI, there is `LivingUpdateEvent` which can be used to cancel `Entity.onUpdate`.\r\n\r\nIf you need to slow down movement, you can look at the slowness potion effect.\r\n\r\nOtherwise you might add a boolean flag on the entity called something like `canUpdate` that you can set, which gets checked in the world update entities function. That way you're not firing an event all the time.\r\n\r\nIt really depend on exactly what you want to do."}}
{"actor":{"display_login":"mezz"}}