Package com.simibubi.create.api.event
package com.simibubi.create.api.event
-
ClassesClassDescriptionTileEntityBehaviourEvent<T extends SmartTileEntity>Event that is fired just before a SmartTileEntity is being deserialized
Also if a new one is placed
Use it to attach a newTileEntityBehaviouror replace existing ones (with caution)
Actual setup of the behaviours internal workings and data should be done in TileEntityBehaviour#read() and TileEntityBehaviour#initialize() respectively.
Because of the earliness of this event, the added behaviours will have access to the initial NBT read (unless the TE was placed, not loaded), thereby allowing tiles to store and retrieve data for injected behaviours.