blob: 96203f59c23f4b5399431982e4a248beca2b351a [file] [log] [blame] [raw]
package li.cil.occ.mods;
import li.cil.oc.api.Network;
import li.cil.oc.api.network.Visibility;
import li.cil.oc.api.prefab.ManagedEnvironment;
public class ManagedTileEntityEnvironment<T> extends ManagedEnvironment {
protected final T tileEntity;
public ManagedTileEntityEnvironment(final T tileEntity, final String name) {
this.tileEntity = tileEntity;
node = Network.newNode(this, Visibility.Network).
withComponent(name).
create();
}
}