|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Inheritance diagram for Terraria.GameContent.Tile_Entities.TEItemFrame:
Collaboration diagram for Terraria.GameContent.Tile_Entities.TEItemFrame:Public Member Functions | |
| override void | RegisterTileEntityID (int assignedID) |
| override void | NetPlaceEntityAttempt (int x, int y) |
| override TileEntity | GenerateInstance () |
| TEItemFrame () | |
| override bool | IsTileValidForEntity (int x, int y) |
| override void | WriteExtraData (BinaryWriter writer, bool networkSend) |
| override void | ReadExtraData (BinaryReader reader, bool networkSend) |
| override string | ToString () |
| void | DropItem () |
| void | FixLoadedData () |
| override void | SaveData (TagCompound tag) |
| Allows you to save custom data for this tile entity. NOTE: The provided tag is always empty by default, and is provided as an argument only for the sake of convenience and optimization. NOTE: Try to only save data that isn't default values. | |
| override void | LoadData (TagCompound tag) |
| Allows you to load custom data that you have saved for this tile entity. Try to write defensive loading code that won't crash if something's missing. | |
| override void | NetSend (BinaryWriter writer) |
| Allows you to send custom data for this tile entity between client and server, which will be handled in M:Terraria.DataStructures.TileEntity.NetReceive(System.IO.BinaryReader). Called while sending tile data (!lightSend) and when F:Terraria.ID.MessageID.TileEntitySharing is sent (lightSend). Only called on the server. | |
| override void | NetReceive (BinaryReader reader) |
| Receives custom data sent in the M:Terraria.DataStructures.TileEntity.NetSend(System.IO.BinaryWriter) hook. Called while receiving tile data (!lightReceive) and when F:Terraria.ID.MessageID.TileEntitySharing is received (lightReceive). Only called on the client. | |
| virtual void | Update () |
| virtual void | OnPlayerUpdate (Player player) |
| virtual void | OnInventoryDraw (Player player, SpriteBatch spriteBatch) |
| virtual string | GetItemGamepadInstructions (int slot=0) |
| virtual bool | TryGetItemGamepadOverrideInstructions (Item[] inv, int context, int slot, out string instruction) |
| virtual bool | OverrideItemSlotHover (Item[] inv, int context=0, int slot=0) |
| virtual bool | OverrideItemSlotLeftClick (Item[] inv, int context=0, int slot=0) |
Static Public Member Functions | |
| static void | NetPlaceEntity (int x, int y) |
| static int | Place (int x, int y) |
| static int | Hook_AfterPlacement (int x, int y, int type=395, int style=0, int direction=1, int alternate=0) |
| static void | Kill (int x, int y) |
| static int | Find (int x, int y) |
| static bool | ValidTile (int x, int y) |
| static void | TryPlacing (int x, int y, Item item, int stack) |
| static void | OnPlayerInteraction (Player player, int clickX, int clickY) |
| static bool | FitsItemFrame (Item i) |
| static void | PlaceItemInFrame (Player player, int x, int y) |
| static int | AssignNewID () |
| static void | Clear () |
| static void | UpdateStart () |
| static void | UpdateEnd () |
| static void | InitializeAll () |
| static void | PlaceEntityNet (int x, int y, int type) |
| static void | Write (BinaryWriter writer, TileEntity ent, bool networkSend=false, bool lightSend=false) |
| static TileEntity | Read (BinaryReader reader, bool networkSend=false, bool lightSend=false) |
| static bool | IsOccupied (int id, out int interactingPlayer) |
| static void | BasicOpenCloseInteraction (Player player, int x, int y, int id) |
| static void | SetInteractionAnchor (Player player, int x, int y, int id) |
Public Attributes | |
| Item | item |
| int | ID |
| Point16 | Position |
| byte | type |
Static Public Attributes | |
| static TileEntitiesManager | manager |
| const int | MaxEntitiesPerChunk = 1000 |
| static object | EntityCreationLock = new object() |
| static Dictionary< int, TileEntity > | ByID = new Dictionary<int, TileEntity>() |
| static Dictionary< Point16, TileEntity > | ByPosition = new Dictionary<Point16, TileEntity>() |
| static int | TileEntitiesNextID |
Events | |
| static Action | _UpdateStart |
| static Action | _UpdateEnd |
Private Member Functions | |
| void | WriteInner (BinaryWriter writer, bool networkSend, bool lightSend) |
| void | ReadInner (BinaryReader reader, bool networkSend, bool lightSend) |
Static Private Attributes | |
| static byte | _myEntityID |
Definition at line 9 of file TEItemFrame.cs.