Tschallacka Posted May 9, 2015 Posted May 9, 2015 I was wondering how i can get an event when a tileentity calls markdirty() I want to monitor changes in certain tileentities of other mods and perform an action corresponding to that. Does markDirty() cause a bud update or is there an event fired? Quote How much wood could a woodchuck chuck if a wood chuck could chuck wood - Guybrush Treepwood I wrote my own mod ish... still a few bugs to fix. http://thaumcraft.duckdns.org/downloads/MagicCookies-1.0.6.4.jar
Abastro Posted May 9, 2015 Posted May 9, 2015 No. It only changes nearby blocks. So it can only be detected by nearby blocks or tileentities. Quote I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Tschallacka Posted May 9, 2015 Author Posted May 9, 2015 How would these blocks detect the markdirty call then? Quote How much wood could a woodchuck chuck if a wood chuck could chuck wood - Guybrush Treepwood I wrote my own mod ish... still a few bugs to fix. http://thaumcraft.duckdns.org/downloads/MagicCookies-1.0.6.4.jar
Abastro Posted May 9, 2015 Posted May 9, 2015 How would these blocks detect the markdirty call then? In case the blocks are nearby blocks, In Block#onNeighborChange get the changed TileEntity. If the tileentity is what you are looking for, then do what you want. That's how you detect markdirty call. Quote I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.