Terraria.TileObjectData.CallPostPlacementPlayerHook C# (CSharp) Method

CallPostPlacementPlayerHook() public static method

public static CallPostPlacementPlayerHook ( int tileX, int tileY, int type, int style, int dir, TileObject data ) : bool
tileX int
tileY int
type int
style int
dir int
data TileObject
return bool
        public static bool CallPostPlacementPlayerHook(int tileX, int tileY, int type, int style, int dir, TileObject data)
        {
            TileObjectData tileData = TileObjectData.GetTileData(type, style, data.alternate);
            if (tileData == null || tileData._placementHooks == null || tileData._placementHooks.postPlaceMyPlayer.hook == null)
                return false;
            PlacementHook placementHook = tileData._placementHooks.postPlaceMyPlayer;
            if (placementHook.processedCoordinates)
            {
                tileX -= (int)tileData.Origin.X;
                tileY -= (int)tileData.Origin.Y;
            }
            return placementHook.hook(tileX, tileY, type, style, dir) == placementHook.badReturn;
        }