public interface BehaviorProvider
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Behavior> |
createBehaviors(net.minecraft.entity.player.EntityPlayer player)
Create all behaviors valid for the specified player.
|
Behavior |
readFromNBT(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.nbt.NBTTagCompound nbt)
Restore a behavior from NBT.
|
net.minecraft.nbt.NBTTagCompound |
writeToNBT(Behavior behavior)
Write a behavior to NBT.
|
java.lang.Iterable<Behavior> createBehaviors(net.minecraft.entity.player.EntityPlayer player)
writeToNBT(li.cil.oc.api.nanomachines.Behavior) and readFromNBT(net.minecraft.entity.player.EntityPlayer, net.minecraft.nbt.NBTTagCompound).player - the player the behaviors should be created for.net.minecraft.nbt.NBTTagCompound writeToNBT(Behavior behavior)
createBehaviors(net.minecraft.entity.player.EntityPlayer), so make sure to save all your behaviors.behavior - the behavior to serialize.Behavior readFromNBT(net.minecraft.entity.player.EntityPlayer player, net.minecraft.nbt.NBTTagCompound nbt)
player - the player the behaviors should be created for.nbt - the tag to restore the behavior from.